- Remove
aws_s3_bucket_acl
since use is now deprecated
- Custom http error responses are now supported
- A new example is included demonstrating use of custom error responses and custom s3 bucket name
- Output
s3_bucket_name
is deprecated and will be removed in a future release - uses3_bucket_id
instead. This corrects inconsistent naming only, the same resource and attribute is referenced in either case.
Release 2.0 moves from aws_cloudfront_origin_access_identity
to aws_cloudfront_origin_access_control
in accord with AWS latest recommended practice.
In the unlikely event that you wish to upgrade between versions without a full destroy
and apply
, it is possible to resolve the error
│ Error: CloudFrontOriginAccessIdentityInUse: The CloudFront origin access identity is still being used.
with
terraform destroy -target module.static-website-s3-cloudfront-acm.aws_cloudfront_distribution.this
Note that this will also destroy the dependent resources
module.static-website-s3-cloudfront-acm.aws_route53_record.domain_name
module.static-website-s3-cloudfront-acm.aws_s3_bucket_policy.this
And your website will be temporarily unavailable. Then do
terraform apply
to destroy the orphaned aws_cloudfront_origin_access_identity
and restore the 'missing' resources.