terraform/builtin
Chris Marchesi c2b44217dd
provider/aws: Require CloudFront S3 origin origin_access_identity
This fixes an issue where an empty s3_origin_config could be supplied to
aws_cloudfront_distribution, "correctly" setting an empty default value.
Unfortunately the rest of the CloudFront structure helper functions are
not equipped to deal with this kind of scenario, and TF produces
spurious diffs upon future runs.

This removes the default and makes origin_access_identity required when
specifying s3_origin_config.

Note that it has always been intended behaviour that if someone does not
want to use an origin access identity, that s3_origin_config should not
be specified at all. This behaviour still works, as should be evident by
the (still) passing tests.

Fixes hashicorp/terraform#7930.
2016-09-23 13:10:50 +01:00
..
bins Bitbucket provider for terraform 2016-08-08 09:45:16 -07:00
providers provider/aws: Require CloudFront S3 origin origin_access_identity 2016-09-23 13:10:50 +01:00
provisioners Support recreating clients and configuring Chef Vaults (#8577) 2016-09-15 14:20:18 +02:00