Setup to AWS by terraform.
Setup to;
- VPC
- Subnets
- Internet Gateway
- Route Tables
- Security Groups
- EC2
- ELB
Write to aws.tf file your aws credentials.
aws.tf
provider "aws" {
access_key = "xxxxxxxxxxxxxxxxxxxx"
secret_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
region = "ap-northeast-1"
}
Check
$ terraform plan
Execute
$ terraform apply