Common patterns
CloudFront edge
An AWS infrastructure pattern, deployed with formae.
A minimal CloudFront edge stack that wires together the full set of edge
building blocks: an S3 origin bucket reached through an origin access control, a
CloudFront function backed by a key value store, and cache, origin request, and
response headers policies. The distribution references all of them.
Deploy. Apply the example forma. formae creates the policies, function, key
value store, and origin bucket before the distribution that references them:
Verify. Once the command completes, the distribution is under management:
Tear down. Remove everything the forma created:
The full forma is in the
cloudfront-edge-minimal example.

