Terraform: CloudFront distribution changes fail with "HttpVersion is missing for the resource" with v0.7.4

Created on 21 Sep 2016  ·  13Comments  ·  Source: hashicorp/terraform

Summary

Creating a CloudFront distribution works, but changes to it (or to a distribution created with earlier Terraform version) fail:

Error applying plan:

1 error(s) occurred:

* aws_cloudfront_distribution.cf: IllegalUpdate: HttpVersion is missing for the resource
status code: 400, request id: xxx

Terraform Version

Terraform v0.7.4 (0.7.3 works fine)

Affected Resource(s)

  • aws_cloudfront_distribution

    References

  • GH-8877 (updated the AWS library)

  • GH-8777 (might fix this, didn't test)
bug provideaws

All 13 comments

I"m also seeing this. Happens with deletes and changes to cloudfront distributions.

Just started happening to me as well.

Seeing this as well for any deletes or changes.

Happens to me as well.

+1, same here.

Same problem, on update / delete.

Hi all

I am currently looking into this now

Paul

Closed via #8777

qq - if this issue prevents updates to other resources, how can I temporarily disable the cf distro? thanks!

Hi @mattyfysh

Not sure what you mean - I think you mean that if this is causing you issues before this gets patched in 0.7.5, can you disable the resource from Terraform - correct?

If this is the case, you would have to remove the resource from the terraform.tfstate file - you'd then need to remember to readd it when 0.7.5 hits

Paul

Is there a timeline for the 0.7.5 release by any chance?

@rfink not quite - soon™️ :)

I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings