EC2/Nginx, accessible by Session Manager

Create one EC2 machine. Use Session Manager instead of SSH to log in. This allows you to login to the instance without having to grant SSH access to the security group.

Terraform Code(Github)

Environment

  • VPC
  • One public subnet.
  • One EC2 instance

  • OS: Ubuntu18.04

  • Install Nginx in EC2 so that you can access it via http://.

  • Enable login with Session Manager instead of SSH

References