Skip to content
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

Custom Resource CloudFront Invalidation In C# #985

Closed
2 tasks done
smguggen opened this issue Jan 22, 2024 · 1 comment · Fixed by #986
Closed
2 tasks done

Custom Resource CloudFront Invalidation In C# #985

smguggen opened this issue Jan 22, 2024 · 1 comment · Fixed by #986
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.

Comments

@smguggen
Copy link
Contributor

smguggen commented Jan 22, 2024

Describe the feature

This example uses an AwsCustomResource to produce an invalidation on an Amazon CloudFront Distribution. A CloudFront Invalidation wipes away the cached content so that new changes in the distribution's origin can be seen immediately.

The AwsCustomResource CDK construct is an L3 Construct that can be used to create an AWS CloudFormation Custom Resource without having to directly create the AWS Lambda Function to support it.

An AwsCustomResource is appropriate to use when you have exactly one AWS SDK call to make per stack task: onCreate, onUpdate, and onDelete.

Use Case

When a stack with a CloudFront Distribution and an S3 Origin wants to clear the cache every time changes are deployed to the origin.

Proposed Solution

The package is an example of this being done, but it also contains an abstracted helper class that can be dropped in to existing stacks and used for any use case.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Language

.NET

@smguggen smguggen added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jan 22, 2024
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant