-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for cloudfront invalidation resource fixes #13298 #37561
base: main
Are you sure you want to change the base?
Conversation
Community NoteVoting for Prioritization
For Submitters
|
ddf4959
to
1a432ae
Compare
1a432ae
to
73d0bcd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the approve.
@iwarapter As the author of the submission, you have the copyright. Could you also submit this to OpenTofu so the fix can reach many more users? |
|
||
* `distribution_id` - (Required) CloudFront Distribution ID. | ||
* `paths` - (Required) List of paths to invalidate. | ||
* `triggers` (Optional) Map of arbitrary keys and values that, when changed, will trigger a re-invocation. To force a re-invocation without changing these keys/values, use the [`terraform taint` command](https://www.terraform.io/docs/commands/taint.html). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we provide an example of using triggers? And maybe more information about what happens if no triggers are specified. I assume if no triggers are specified the invalidation will be performed 1 time ever (on initial "resource create"), but triggers would make it happen basically on demand (that is awesome, btw).
NOTE: I'm not a maintainer, I just think this is a neat change. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea and implementation is a copy of this https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_invocation#dynamic-invocation-example-using-triggers
Their docs give great examples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean more like, provide an example on the http example page in this PR. Thank you for the link! I want to learn more about this, I'm a n00b with aspirations of knowing what you're doing in this PR one day. :)
@Nowaker: The AWS provider is open source under the MPL-2.0 license, so this change, once merged, should be usable by the Tofu community too! <3 |
@KyMidd Ah, cool, thanks for clarifying! |
Description
Add resource for CloudFront Invalidation:
Relations
Closes #13298
Output from Acceptance Testing