diff --git a/aws-codepipeline-catpipeline/02_LABINSTRUCTIONS/STAGE3-CODEPIPELINE.md b/aws-codepipeline-catpipeline/02_LABINSTRUCTIONS/STAGE3-CODEPIPELINE.md index 043b5141..bb761ed4 100644 --- a/aws-codepipeline-catpipeline/02_LABINSTRUCTIONS/STAGE3-CODEPIPELINE.md +++ b/aws-codepipeline-catpipeline/02_LABINSTRUCTIONS/STAGE3-CODEPIPELINE.md @@ -74,6 +74,16 @@ artifacts: files: imagedefinitions.json ``` +### YAML Formatting in VSCode +If you are using VSCode, go to your command pallete and run the `Convert Identation to Spaces` command. Afterwards, you will still have to manually indent the `commands` section of each building phase: + +```yaml +phases: + pre_build: + commands: + - echo Logging in to Amazon ECR... +``` + ## TEST A COMMIT run diff --git a/aws-codepipeline-catpipeline/02_LABINSTRUCTIONS/STAGE4-CODEDEPLOY.md b/aws-codepipeline-catpipeline/02_LABINSTRUCTIONS/STAGE4-CODEDEPLOY.md index b768f26b..486180fb 100644 --- a/aws-codepipeline-catpipeline/02_LABINSTRUCTIONS/STAGE4-CODEDEPLOY.md +++ b/aws-codepipeline-catpipeline/02_LABINSTRUCTIONS/STAGE4-CODEDEPLOY.md @@ -50,6 +50,9 @@ Pick `0.5vCPU` for task CPU and `1GB` for task memory. Select `ecsTaskExecutionRole` under task role and task execution role. Click `Next` and then `Create`. +### Create an ecsTaskExecutionRole +If you don't have this role, you will need to create it. +You can find detailed instructions in aws docs [here](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html) - scroll down to the section titled `Creating the task execution (ecsTaskExecutionRole) role section` and follow the instructions there. ## DEPLOY TO ECS - CREATE A SERVICE Click Deploy then `Create Service`.