Simple Code Pipeline
Simple Code Pipeline
Code Code
S3 EC2
Deploy Pipeline
To create an S3 bucket:
To launch instances:
6. Under Agent configuration with AWS Systems Manager, choose Now and schedule
updates. This installs the agent on the instance.
7. Under Deployment settings, choose CodeDeployDefault.OneAtaTime.
8. Under Load Balancer, make sure the Enable load balancing box is not selected.
9. In the Advanced section, leave the defaults.
10. Choose Create deployment group.
1. On the Welcome page, Getting started page, or the Pipelines page, choose Create
pipeline.
2. In Step 1: Choose pipeline settings, in Pipeline name, enter MyFirstPipeline.
3. In Service role, do one of the following:
• Choose New service role to allow Code Pipeline to create a new service role in IAM.
• Choose Existing service role to use a service role already created in IAM. In Role
name, choose your service role from the list.
4. Leave the settings under Advanced settings at their defaults, and then choose Next.
5. In Step 2: Add source stage, in Source provider, choose Amazon S3. In Bucket,
enter the name of the S3 bucket you created in Step 1: Create an S3 bucket for your
application. In S3 object key, enter the object key with or without a file path, and
remember to include the file extension. For example, for SampleApp_Windows.zip,
enter the sample file name as shown in this example:
6. In Step 3: Add build stage, choose Skip build stage, and then accept the warning
message by choosing Skip again. Choose Next.
7. In Step 4: Add deploy stage, in Deploy provider, choose Code Deploy.
The Region field defaults to the same AWS Region as your pipeline. In Application
name, enter MyDemoApplication, or choose the Refresh button, and then choose the
application name from the list. In Deployment group, enter MyDemoDeploymentGroup, or
choose it from the list, and then choose Next.
8. In Step 5: Review, review the information, and then choose Create pipeline.
9. Choose Create pipeline.
10. The pipeline starts to run. You can view progress and success and failure messages as
the Code Pipeline sample deploys a webpage to each of the Amazon EC2 instances in
the Code Deploy deployment.
11. View the initial progress of the pipeline. The status of each stage changes from No
executions yet to In Progress, and then to either Succeeded or Failed. The pipeline
should complete the first run within a few minutes.
12. After Succeeded is displayed for the action status, in the status area for
the Deploy stage, choose Details. This opens the Code Deploy console.
Ajay Wankhade