w10,11,12 CND k4
w10,11,12 CND k4
Name B.Divya
A. Somanshu Dev
Roll No. 22R21A05L2
22R21A05K4
Year of Study III B.Tech I SEM CSE-D
Date 28/11/2024
PROBLEM STATEMENT: Implement continuous integration using AWS Codebuild
Steps to be followed:
Step 1: First log into the AWS console
Step 3: Add a build name and description, and configure for Github
Step 4: Select your repository and specify a branch (in our case develop)
Step 5: Select which hooks you want Github to trigger
Step 7: You may need to add a specific variable for running the tests in CI mode
Step 10: You require admin privileges to reach the settings of a github repo
Step 11: Then in the options select Require status checks to pass before merging, the new
AWS CodeBuild that we created should be there as option (the name we assigned it will bein brackets to
be sure we have the correct one). Tick the option.
5. Install authbind and modify port 80 (for enabling production server to run app at port 80
5. Clone GitHub Repository. (You may change to your own working GitHub repository)
git clone https://github.com/azzan-amin-97/FlaskAppCodeDeploy.git
Add scripts folder in root directory and add these files below
Step 9: Successfully created a working CI/CD pipeline for Amazon EC2 Deployment using
GitHub Actions and AWS CodeDeploy.
Name A.B.Divya
Somanshu Dev
Roll No. 22R21A05L2
22R21A05K4
Year of Study III B.Tech I SEM CSE-D
Date 04/12/2024
WEEK-12
PROBLEM STATEMENT: Implement CI/CD using AWS Code pipeline that automates the build, test,
anddeployment phases
Steps to be followed:
Enter the pipeline name and the role name. Click next to move to next screen.
Step 3: Link your github repository with the codepipeline. Select the Github version 2
and click on the button “Connect to github”. Here, a new popup will open where you will
be entering your github credentials. After successfully logging into github, you will select
the repository and branch name. Then click next to move to the next stage.
Step 4: On the build stage, select “AWS Codebuild” as your build provider. However,
you can select any other build provider as well. Then click on “Create Project” to create a
new build project. Specify the OS, runtime, service role, environment image, and image
version on this screen. After specifying this detail, click “Continue to pipeline”.
Step 5: The next stage is the deploy stage. Here you will mention Amazon S3 as deploy
provider because the build will be deployed to S3 bucket. You will select the S3 bucket
for build deployment. S3 bucket allows static web hosting, so the build will be deployed
to S3, and the project will be accessible from S3 URL.
Step 6: Click “Next” And then click “Create pipeline”.
Step 7: Now, your pipeline is created. Next, select CodeCommit for source provider
(or Github if you are using it, for this, you have to log in to Github) and select the
repository and branch to configure for CI/CD.
Step 8: Next, for the build provider select CodeBuild and create a new build project,
give it a name and configure it as follows
Step 9: Search for ECR and select the policy as below and click Attach policy
For Deploy provider, select Amazon ECS, cluster, and service name. Also, add the
name of the image definitions file as ‘images.json’ that we will create during the
build process
Step 10: Test the complete Pipeline by changing the source code
andpushing the changes to the Code commit repository.
Once the changes are pushed, CodePipeline will trigger the
CI/CD process and createsa new deployment of the AWS Fargate
Service with the new image build
To verify our changes are made and deployed successfully, visit the DNS
name in thebrowser