Terraform script to provision AWS EC2 Spot Instances with Deep Learning AMI (Amazon Linux) latest version.
# Provision
aws configure
terraform init
terraform apply \
-var 'spot_price=1.1' \
-var 'instance_type=p3.2xlarge' \
-var 'region=us-east-1' \
-var 'key_name=terraform'
# Cleanup
terraform destroy