This is an open project to conclude a trail for an Intern formation at Instituto Altântico.
This project is a terraform application which uses AWS to create an instance of nginx using EC2 T2.Micro which is eligible for free tier. Providing an infrastructure.
- Terraform
- EC2 Instance
- AWS IAM
The first step is initialize terraform project:
$ terraform init
You will need to create an IAM account on AWS in order to run terraform plan. See this guide.
Variable | Description |
---|---|
AWS_ACCESS_KEY | Long-term credentials for an IAM user |
AWS_SECRET_KEY | Long-term credentials for an IAM user |
retention_days | Time that logs will be retained on AWS |
INSTANCE_NAME | Name of the EC2 instance |
prefix | Prefix to organize names on AWS |
PUBLIC_KEY_SSH | Key to connect to instance with SSH |
EC2_USER | Name of the user that will be created on your instance |
PRIVATE_KEY_PATH | Path where your SSH private key is stored |