Common patterns
Static website (S3 + CloudFront)
An AWS infrastructure pattern, deployed with formae.
A static site served from an S3 website bucket, fronted by a CloudFront
distribution, with a Route 53 hosted zone and an alias record pointing at the
distribution. The bucket policy makes the objects publicly readable, the
distribution uses the bucket’s website endpoint as its origin, and the alias
record resolves to the distribution’s domain name.
Deploy. Apply the example forma. formae brings up the bucket and its policy
before the distribution, and the hosted zone before the alias record:
Verify. Once the command completes, the distribution is under management:
Tear down. Remove everything the forma created:
The full forma is in the
static-website example.

