- You must have a valid AWS profile. If you do not have the profile economist-ds-dev, change the
.tfvars
file to some profile that you have access to. (Note, if you change the AWS account, you should probably update theuser-data
script, since it will not be able to load the expected app from ECR.)
-
Initialize the terraform state
terraform init
-
Execute the script
terraform apply -auto-approve
-
(optional) Destroy the resources when no longer needed
terraform destroy -auto-approve
Notes:
- the instance is configured to serve a (older version) of the engagement team application.
- this app is stored in the amazon Elastic Container Registry, and it is loaded when the
user-data
script is executed. - the instance is configured with an SSH key (
engagement-ec2-key
).