AWS CodePipeline
AWS CodePipeline
After using AWS CodeCommit to push the code from the local machine, we build through AWS CodeBuild and use AWS CodeDeploy to deploy the application to EC2 then we will now use AWS CodePipeline to create the CI/CD process to deploy the application.
-
Access to AWS CodePipeline
-
Configure AWS CodePipeline
- Enter Pipeline name
- Create a service role for AWS CodePipeline
- Select Next
-
For the Advanced settings section
- Custom location
- Select bucket
- Select Next
-
For AWS source stage
- Select AWS CodeCommit for Source provider
- Select Repository
- For Branch name, select master
- Select Next
-
For the build
- Select Build provider as AWS CodeBuild
- Select Region
- Select Project name that you created and build.
- Select Next
-
For Deploy stage
- Deploy provider, select AWS CodeDeploy
- Select Region
- Select Application name you created.
- Select Deployment group
- Select Next
- Select Create pipeline
- After successfully creating the pipeline, it will take you about 10 minutes to complete the pipeline.
-
You will try editing the code to test the pipeline.
- You access the application code
- Go to index.html, edit line 31 with “!!!”
- Then commit chages
- After the next 1 minutes, we will finish the pipeline we just changed the code.
-
Perform a changed application check
- We access EC2 deployment
- Copy DNS