Closed schammah closed 1 year ago
@schammah Thanks for reporting this. Looking at the code
UpdateDistribution
is called even when the update is just to the tags
attribute.
This is a great use case for the proposed schema.ResourceData.HasChangeExcept
method: https://github.com/hashicorp/terraform-plugin-sdk/issues/457.
👍 upvoting this. quite an annoying issue.
I've recently seen this when modifying a distribution's origin too, except it's taking way longer than 10 mins and currently been running for 30 mins!
module.serverless.module.cloudfront.aws_cloudfront_distribution.api_distribution: Still modifying... [id=E3IIWP497XXANV, 30m0s elapsed]
Upvoting. Takes 8 minutes to replace a tag on cloudfront_distribution. It's completely annoying.
This functionality has been released in v5.12.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!
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.
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
files generated before apply
Expected Behavior
Expected the provider to use the TagResource If a change in tags occurs, therefor the run would take 10 secs and not 10 minutes Same as if you modify a tag from the console
Actual Behavior
AWS Provider is using the
4: PUT /2019-03-26/distribution/E34W9FSLFIIZ7E/config HTTP/1.1
the PUT config API for the whole distribution which is taking 10 minutes to completetags=****
parameter inside the resource 3 runterraform apply
, wait 10 minutesImportant Factoids
This might be occurring for other updates than tags only, it's worth investigating and modify the behavior of the provider on cloudfront distribution to be more efficient