Skip to content

Instantly share code, notes, and snippets.

@brijesh-deb
Last active December 20, 2017 04:06
Show Gist options
  • Save brijesh-deb/3f9e2a9e45c7cddb9dfffc4a37864aab to your computer and use it in GitHub Desktop.
Save brijesh-deb/3f9e2a9e45c7cddb9dfffc4a37864aab to your computer and use it in GitHub Desktop.
#AWS #EC2

Create AWS EC2 instance

  • EC2 dashboard> launch instance
  • Choose AMI (eg: Amazon Linux AMI)
  • Choose instance type (eg: t2.micro for free tier)
  • Configure instance details
    • Network: choose VPC
      • Subnet: choose a subnet
      • Auto-assign Public IP: Disable
  • Add storage
  • Configure Security Group
  • Create a key pair if already not there; download .pem file
  • This creates a new EC2 instance; but it doesn't have Public DNS to access from outside. For that associate Elastic IP (next section)

Allocate Elastic IP

  • EC2 dashboard> Elastic IP > Allocate new address > Allocate
  • Select new Elastic IP > Actions > Associate address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment