O'Reilly logo

AWS Automation Cookbook by Nikit Swaraj

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

  1. First of all, we have to create an IAM role for the EC2 instance and attach AWS CodeDeploy and AWS S3 access. We have  named the role CodeDeploy-Instance-Profile:
  1. Once the role gets created, we have to launch an EC2 instance in the public subnet with the IAM role. So, we named the EC2 instance AWS-CodeDeploy-Instance:
  1. Now, we have to install the CodeDeploy agent on the servers and dependencies of the application that is NodeJS:
    # yum update    # yum install ruby    # yum install wget # wget https://BUCKET-NAME.s3.amazonaws.com/latest/install ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required