Terraform ECS ALB Demo
-
Create AWS key pair using console or cli. this key will be used t launch EC2 instances
-
Create a file named terraform.tfvars with the following contents and assign variables within this file:
access_key = "Your AWS access key"
secret_key = "Your AWS secret key"
key_name = "AWS key pair name." #actual key file should be placed in the root directory."
- terraform get
- terraform plan
- terraform apply
terraform destroy
#Note: Launching this stack will cost you some money.