Launch an EC2 instance

  1. Launch an EC2 instance.

    • Access to EC2
    • Select Instance
    • Select Launch instances

CodeDeploy

  1. In the Launch an instance interface

    • Name and tags, enter CodeDeployDemo
    • Select Quick Start
    • Select Amazon Linux

CodeDeploy

  1. For Instance type select t3.medium

    • Select Create new key pair

CodeDeploy

  1. For Key pair name, enter awsstudygroup

    • Select Create key pair
    • This key pair should be stored on the machine carefully to SSH into the EC2 instance.

CodeDeploy

  1. Perform network configuration

    • VPC: Default
    • Subnet: a subnet of VPC default (default is public subnet)
    • Auto-assign public IP: Enable
    • Firewall (security groups): Create security group:
    • SSH / Port 22 / Anywhere
    • HTTP / Port 80 / Anywhere

CodeDeploy

  1. Advanced details:
  • IAM instance profile: CodeDeployDemo-EC2-Instance-Profile

CodeDeploy

  1. Complete EC2 instance creation.

CodeDeploy

  1. Check details after 3 minutes of EC2 instance initialization.

CodeDeploy

  1. Check the Security of the EC2 instance.

CodeDeploy