Added support for (all in #166):
- Use a pre-existing S3 bucket (this e.g. skips creation of the sample React app)
- Use a custom origin (e.g. non S3). Also included are parameters with which you can set a custom secret header that is sent along with each request to your custom origin, that your custom origin can check for to make sure the request comes from your CloudFront distribution.
- Use a pre-existing WAF Web ACL
- Use a pre-existing S3 bucket to store CloudFront access logs
- Ability to specify the
DefaultRootObject(previously this would always be set toindex.html)
Note: these things were possible before, if you choose to set CreateCloudFrontDistribution to false. Now they are also possible in the "easy" path, when you set CreateCloudFrontDistribution to true, i.e. with the in-built CloudFront distribution.
Fixed:
- Errors, when logged, were logged as
{}in CloudWatch (#164), but are now properly formatted.