In this stage we'll use Terraform to set up: - an S3 bucket configured to serve static files over the web - a Cloudfront distribution
-
Create the infrastructure
terraform apply aws
-
Upload a file to the static files S3 bucket.
./upload-static-file.sh
-
Check that the file is available via the Cloudformation domain.
curl http://dvibgn96rogbo.cloudfront.net/hello-world.txt
-
Tear down the infrastructure.
terraform destroy aws