CICD Pipeline with AWS CodePipeline Flashcards

1
Q

What is CI/CD ?

A

A CI/CD (continuous integration and continuous deployment) pipeline is a series of automated steps that helps build, test, and deploy code changes.

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

Amazon CodePipeline

A

Amazon CodePipeline is a continuous delivery service that automates the deploying, compiling, and testing of code using a pipeline of stages personalized according to a desired development workflow. Amazon CodeBuild is a fully managed AWS service that continuously integrates and compiles source codes and builds production-ready software applications. Amazon CodeDeploy is a service that automates and simplifies the code deployment process and allows for efficient and consistent updates to a software application.

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

Create an S3 Bucket

A

An S3 (Simple Storage Service) bucket is a cloud storage resource for storing AWS resource objects.

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

IAM Role

A

An IAM role is used to allow an entity, like an AWS service such as Lambda or an EC2 instance, to get temporary security credentials allowing for permissions associated with that role.

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

Security Group

A

Security groups are rules that manage the inbound and outbound traffic for an associated instance at the instance level. In other words, they can be considered a kind of firewall for this instance.

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

EC2

A

An EC2 instance is a virtual server on the AWS cloud that provides scalable computing services and allows for easy deployment and running of applications on the cloud. We’ll first launch the instance by configuring its AMI, instance type, security settings, and storage and defining a bootstrap script to pre-install the CodeDeploy agent needed for the deployment of any resources to the EC2 instance and the node environment itself.

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

Code Deploy Script

A

!/bin/bash

Enabling admin rights
sudo su

send script output to /tmp so we can debug boot failures
exec > /tmp/userdata.log 2>&1

Update all packages
yum -y update
yum -y install ruby
yum -y install wget

Installing the CodeDeploy agent
cd /home/ec2-user
wget https://aws-codedeploy-us-east-2.s3.amazonaws.com/latest/install
chmod +x ./install
./install auto
cd /../..

Downloading and Installing NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

Adding the nvm environmental variable to path
export NVM_DIR=”$HOME/.nvm”
[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh”

Installing Node
nvm install 16

Re-adding the nvm environmental variable for the ec2-user account
cat «EOF&raquo_space; /home/ec2-user/.bashrc
export NVM_DIR=”/.nvm”
[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh”
EOF

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

GitHUB

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

Amazon CodeBuild

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

Code Deploy

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