-
-
Notifications
You must be signed in to change notification settings - Fork 839
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
allow_encrypted_uploads_only overrides policy #11
Comments
One way to solve it: hashicorp/terraform-provider-aws#2890 |
Thanks @darend I took a quick look at data source aws_iam_policy_document If policy parameter is specified it will be used to set the soure_json. Now if a user sets the property allow_encrypted_uploads_only I will set override_json. I will contribute the final solution back into the repo. |
Off hand Im not sure how to do it in this repo because
|
* Added policy to allow only ssl/https uploads * Merge user defined bucket policy with any additional/enabled policies defined within the module. This prevents overriding the user defined policy (`var.policy`) as long as the `sid` values are distinct. Closes cloudposse#11
@darend Thanks for providing the clues for solving this issue. I've submitted a pull request (#49) which uses dynamic blocks to build out the |
* Added policy to allow only ssl/https uploads * Merge user defined bucket policy with any additional/enabled policies defined within the module. This prevents overriding the user defined policy (`var.policy`) as long as the `sid` values are distinct. Closes cloudposse#11 Merge user defined policy with ssl policy * Allow merging the user defined policy by specifying it in the `source_json` of the default `aws_s3_bucket` resource. This simplifies the previous commit which created a new resource. * Remove the s3 bucket resource `policy` argument to avoid colliding with the merged s3 bucket policy document that will define the overall bucket policy. Small formatting change * Small formatting change after running `terraform fmt`.
* Added policy to allow only ssl/https uploads * Merge user defined bucket policy with any additional/enabled policies defined within the module. This prevents overriding the user defined policy (`var.policy`) as long as the `sid` values are distinct. Closes cloudposse#11
If I create a new bucket and pass in a policy and setup allow_encrypted_uploads_only the policy is ignored and bucket policy only contains allow_encrypted_uploads_only related statements.
The text was updated successfully, but these errors were encountered: