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

Add a switch on the bucket policy #2

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

hingstarne
Copy link

In our use case we need to change the bucket policy outside this module. There was no easy way to do this with the actual module.
We added a switch with enable_bucket_policy defaulting to be true.
Hope this fits into the mainstream module.

hingstarne and others added 5 commits March 2, 2021 12:03
If you manage the bucket policy for example for CRR or SRR already outside
the module, you need to be able to handle the policy without the module.

Signed-off-by: Arne-Kristian Hingst <arne@hingst.it>
custom_origins is an object variable that can specify additional origins
apart from the default bucket. On top of that, to support "routing" the
ordered cache behavior was introduced.

Note that the implementation was based on CloudPosse's CloudFront module
Ref: https://github.com/cloudposse/terraform-aws-cloudfront-s3-cdn/
Adding Forwarded values to custom_origins using the default values from
variables.
Adding Custom origins and behaviors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants