Deploy an Application to Multiple EC2 Instances with AWS CodeDeploy
In this lab, you’ll practice working with CodeDeploy. When you’re finished with this lab, you’ll have an application deployed to multiple EC2 instances using AWS CodeDeploy.
Terms and conditions apply.
Lab info
Lab author
Challenge
Create an IAM Instance Profile for AWS EC2 Instances
You will create an IAM instance profile, which gives CodeDeploy permission to access the AWS S3 bucket where your revised application would be stored.
Challenge
Create a Service Role for CodeDeploy
You will create a service role for CodeDeploy to grant permission to other AWS services.
Challenge
Prepare an EC2 Instance for Use with CodeDeploy
You will configure an EC2 instance to which you will deploy the first version of the application.
Challenge
Upload an Application Revision to S3
You will provision an S3 bucket and upload to it your application revision.
Challenge
Create an Application, Deployment Group, and Deployment Configuration
You will create an application, deployment group and deployment configuration to ensure that the correct revision is referenced during a deployment.
Challenge
Deploy Your Application with CodeDeploy
You will deploy the application revision uploaded to your S3 bucket.
Challenge
Verify Your Deployment
You will verify your application revision by viewing the site in a web browser.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.
Recommended prerequisites
- Knowledge of AWS IAM Users, Roles, Policies and Permissions
- Knowledge of AWS EC2
- Knowledge of AWS S3
- Basic familiarity with HTML and YAML