CICD: CodeCommit, CodePipeline, CodeDeploy, CodeBuild, CloudFormation Flashcards

1
Q

AWS CodePipeline Service

A
  • continuous delivery service that helps you automate your release pipelines for application and infrastructure
  • comprises a series of stages (build, test, deploy)
  • you can add an approval action to stage in a pipeline that points to where you want the pipeline to stop so someone can approve; with the required IAM permissions.
  • you can configure this action to publish to an SNS topic
  • must have at least 2 stages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

CodeDeploy: In-Place Deployment

A
  • the application on each instance in the deploy group is stopped
  • the latest application version is installed
  • the new version of the application is started and validated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

CodeDeploy: Deployment Blue/Green

A

Blue/Green deployment

  • EC2 instances in the original environment are replaced by a different set of instances
  • Lambda: traffic is shifted from current serverless environment to one with the updated lambda code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

CodeDeploy: Deployment Method

A
  • In-place deployment

- Blue/Green deployment

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

AWS CodeBuild Service

A
  • Continuous Integration
  • compiles source code
  • runs test cases
  • produces software packages that are ready to deploy
  • build specification YML lets you choose the commands to run at each phase of the build process.
  • cannot trigger a lambda function directly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

CodeCommit: Monitoring

A
  • AWS IAM to control and monitor who can access your data, how, when and where.
  • Monitor repositories with CloudTrail and CloudWatch
  • Use SNS to receive notifications for events impacting your repositories
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

CodeCommit: Limits

A
  • 1,000 repository limits
  • a single blob cannot be more that 2GB
  • total size of files in a single commit have a 20MB max
  • individual files should not exceed 6MB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

AWS CodeDeploy Service

A
  • Fully Managed deployment service

- automates software deployments to EC2, Fargate, Lambda and on-premises servers

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

CodeDeploy: Deployment Configuration

A
  • a set of deployment rules and deployment success and failure conditions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

CodeDeploy: Deployment Group

A
  • individually tagged instances in EC2 Auto Scaling Group.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

CodeDeploy: Deployment Lifecycle Events

A
  1. ApplicationStop
  2. DownloadBundle
  3. BeforeInstall
  4. Install
  5. AfterInstall
  6. ApplicationStart
  7. ValidateService
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

CodePipeline: Revision

A

A change made to the source location defined fo your pipeline

It can include source code, build output, configuration or data.

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

CodePipeline: Stage

A

A group of one or more actions.

A pipeline can have two or more stages.

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

CodePipeline: Action

A

A task perform on a revision.

Pipeline actions occur in a specified order.

6 Types of actions:

  • Source
  • Build
  • Test
  • Deploy
  • Approval
  • Invoke
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

CodePipeline: Limits

A
  • Max number of total pipelines per region is 300

- Stage: min 2 max 10

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

CodeBuild: Project

A

Define how CodeBuild will run a build.

  • Where to get source code
  • Which build environment to use
  • build commands to run
  • where to sore the build output
17
Q

CodeBuild: Environment

A

A combination of OS, programming language, runtime and tools used by to build

18
Q

CodeBuild: Build Specification

A

YAML file that lets you choose the commands to run at each phase of the build and other settings.

19
Q

CodeBuild: Compute Capacity

A
  • build.general1.small
    3GB RAM, 2vCPU
  • build.general1.medium
    7GB RAM, 4vCPU
  • build.general1.large
    15GB RAM, 8 vCPU
20
Q

AWS CloudFormation Service

A
  • Model infrastructure in a template file using JSON or YAML.
  • Automate the provisioning and updating of Infrastructure in a safe and controlled manager
  • Provisioning Mechanism
21
Q

Which section in CloudFormation template does not allow for condition?

A
  • “Parameters”: Conditions cannot be used within the Parameters section.

Conditions are allowed with:

  • Outputs
  • Resources
  • Condidtions
22
Q

CloudFormation: Multiple Exported Values

A
  • Exported Output values in CloudFormation must have unique names within a single region
23
Q

CloudFormation: !FindInMap

A

!FindInMap [ MapName, TopLevelKey, SecondLevelKey ]

24
Q

CodeBuild: Timeouts

A

By setting the timeout configuration the build process will automatically terminate post the expiry of the configured timeout.

Default is 60 minutes.

25
Q

AWS::Serverless::Function

A

This resource creates a lambda function

26
Q

AWS::Serverless::UserPool

A

Applies to the Congnito service which is used for authentication

27
Q

AWS::Serverless::API

A

Describes an API Gateway resource

28
Q

AWS::Serverless::SimpleTable

A

Syntax for describing how to create a DynamoDB table