Terraform v0.12.10
resource "aws_cloudfront_distribution" "assets_distribution" {
origin {
domain_name = "${var.bucket_domain_name}"
origin_path = "${var.bucket_path}"
origin_id = "${var.domain_names[0]}-origin"
s3_origin_config {
origin_access_identity = "${var.origin_access_identity}"
}
}
...
After apply, there should not be a change on subsequent plans.
On every subsequent run, the plan shows:
+ origin {
+ domain_name = "XXXXX.s3.amazonaws.com"
+ origin_id = "YYYYY-origin"
+ s3_origin_config {}
}
- origin {
- domain_name = "XXXXX.s3.amazonaws.com" -> null
- origin_id = "YYYYY-origin" -> null
}
It appears that the s3 origin access identity is still set correctly, even though it is not listed in the plan.
terraform planterraform applyI'm getting this too. It's actually making the change, too, it's not just a NO-OP
We recently went from 0.11 to 0.12, and thats when it started happening. Highly frustrating.
Confirmed this happens with 0.12.13 and 2.33.0. Tried ordering the origins the same as they are in the console - nope.
Most helpful comment
I'm getting this too. It's actually making the change, too, it's not just a NO-OP
We recently went from 0.11 to 0.12, and thats when it started happening. Highly frustrating.