- terraform init
- terraform plan
- terraform apply
- terraform destroy
- terraform apply --auto-approve
- terraform state list | show
- terraform output
- terraform refresh
- create vpc
- Create internal gateway
- Create custom route table
- create a subnet
- associate subnet with route table
- create security group to allow port 22, 80, 443
- create a network interface with an ip in the subnet that was created in step 4
- assign an elastic ip to the network interface created in step 7
- create ubuntu server and install/enable apache2
- Create compute with miniconda
- Execute user_data, download d2l
- log userdata: tail -f /var/log/cloud-init-output.log
https://www.youtube.com/watch?v=SLB_c_ayRMo
https://blog.gruntwork.io/an-introduction-to-terraform-f17df9c6d180