What 2 ways can you authenticate in Git using CodeCommit?
How do you Authorize users to interact with your code in Git using CodeCommit?
How are CodeCommit repos encrypted?
- Encrypted in transit using SSH or HTTPS
How do you provide Cross Account access to your CodeCommit repos?
Use IAM role in your AWS account and use AWS STS with AssumedRole API.
What 3 services does CodeCommit integrate with for notifications?
What type of events would you use SNS/Lambda notification integration for in CodeCommit?
Branch events or action in the master branch
What type of events would you use Cloudwatch Event Rules notification integration for in CodeCommit?
PR or commit comments
What is Code Pipeline?
It is an orchestration tool to visualize your workflow from source, build, test and deployment
What is a CodePipeline Artifact?
It is a file that is passed from one stage in the workflow to the next, stored in S3.
What happens when CodePipeline state changes?
A Cloudwatch Event is triggered, which can create SNS notifications.
What happens if CodePipeline fails a stage?
The pipeline stops and more information is available in the console.
What could be the cause of CodePipeline being unable to perform an action?
The IAM Service Role assigned to the Pipeline does not have the correct permissions.
How do you define build instructions for CodeBuild?
In a file called buildspec.yml at the root of the code
How do you define secret variables in the buildspec.yml file?
Use SSM Parameter Store
What are the 4 phases covered in the buildspec.yml file?
How can you improve CodeBuild buildspec performance?
Cache dependencies in an S3 Cache Bucket
What do you need to run/debug CodeBuild locally?
CodeBuild Agent and Docker
What is CodeDeploy used for?
Its used for deploying code to multiple EC2 instances
What are the 6 steps to make CodeDeploy work?
Can you do Blue/Green deployments in CodeDeploy?
Yes, but only in EC2 instances, not on premise
What are the sections of the appspec.yml file for CodeDeploy?
What is the correct order of the 6 Hooks for CodeDeploy?
What are the 4 possible Deployment Configs for CodeDeploy?
What is the behavior of a failed deployment in CodeDeploy?
The failed instance stays in the Failed state, and new deployments will be deployed to the failed instances first.