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

feat: support a list of CORS rules instead of a single rule #40

Merged
merged 3 commits into from
Aug 17, 2020

Conversation

exocom
Copy link
Contributor

@exocom exocom commented Aug 5, 2020

Description

Modify CORS to support multiple rules instead of a single rule

Motivation and Context

When importing an existing bucket the module was attempting to remove all but one of the rules.

Breaking Changes

Yes

Object to Array. It is possible to be backwards compatible, however, since the syntax is as simple as adding brackets there is little reason to add additional code.

How Has This Been Tested?

Applying on an existing resource

@exocom exocom changed the title support a list of rules instead of a single rule Support a list of rules instead of a single rule Aug 5, 2020
@exocom exocom changed the title Support a list of rules instead of a single rule feat: support a list of rules instead of a single rule Aug 5, 2020
variables.tf Outdated Show resolved Hide resolved
@exocom
Copy link
Contributor Author

exocom commented Aug 14, 2020

@bryantbiggs any chance we can get this merged in?

@bryantbiggs
Copy link
Member

@antonbabenko 👍

@antonbabenko
Copy link
Member

I renamed variable to be the same as before - cors_rule. This way users should wrap value to make it list.

@antonbabenko antonbabenko merged commit 4e1d7ab into terraform-aws-modules:master Aug 17, 2020
@antonbabenko antonbabenko changed the title feat: support a list of rules instead of a single rule feat: support a list of CORS rules instead of a single rule Aug 17, 2020
@antonbabenko
Copy link
Member

Thanks @exocom for this PR!

v1.11.0 has been just released.

@github-actions
Copy link

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 29, 2022
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants