AWS CICD Flashcards
What allow to Visual Workflow to orchestrate your CICD
AWS CodePipeline
Code pipeline proprties and services used
- Source – CodeCommit, ECR, S3, Bitbucket, GitHub
- Build – CodeBuild, Jenkins, CloudBees, TeamCity
- Test – CodeBuild, AWS Device Farm, 3rd party tools, …
- Deploy – CodeDeploy, Elastic Beanstalk, CloudFormation, ECS, S3, …
- Invoke – Lambda, Step Functions
What are artifacts in AWS CodePipeline?
Artifacts are files or data passed between stages in a pipeline.
Two types:
Input Artifacts: Consumed by a stage.
Output Artifacts: Produced by a stage for downstream stages.
Stored in an Amazon S3 bucket configured for the pipeline.
Format: ZIP files (compressed) containing code, build output, or deployment configurations.
Security: S3 bucket is encrypted and managed by AWS CodePipeline..
What are stages in AWS CodePipeline?
Stages represent distinct phases in the pipeline (e.g., source, build, deploy).
Common stages:
Source: Fetches source code from repositories like GitHub, CodeCommit, or S3.
Build: Uses tools like CodeBuild to compile and test the code.
Deploy: Deploys to services like Elastic Beanstalk, ECS, or Lambda.
Approval (optional): Manual or automated approval gates.
Each stage consists of actions that define specific tasks.
Stages are sequential but can include parallel action
What are common issues in AWS CodePipeline and their causes?
Pipeline Stuck:
Cause: Action failing or waiting for a manual approval.
Solution: Check the status of actions and logs for errors.
Artifact Issues:
Cause: Missing or incorrect artifact configurations.
Solution: Verify artifact names and ensure correct S3 bucket permissions.
Permissions Errors:
Cause: IAM roles lacking required permissions.
Solution: Review IAM policies for CodePipeline, CodeBuild, and S3.
Source Stage Fails:
Cause: Incorrect repository or branch configuration.
Solution: Confirm repository details and source provider connection.
Deployment Fails:
Cause: Issues with destination service (e.g., ECS, Lambda).
Solution: Check deployment logs and ensure proper service configuration.