AWS CICD Flashcards

1
Q

What allow to Visual Workflow to orchestrate your CICD

A

AWS CodePipeline

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Code pipeline proprties and services used

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are artifacts in AWS CodePipeline?

A

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..

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are stages in AWS CodePipeline?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are common issues in AWS CodePipeline and their causes?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly