-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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: Attach bucket policy for S3 endpoints #341
Conversation
add policy configuration for S3 endpoints
Friendly |
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.
thank you for the PR @lliknart ! could you update the complete-vpc
to reflect your proposed changes here and make sure the changes work successfully by provisioning the example please? we will need to make sure that the default behavior does not disrupt existing users, while allowing users the ability to provide a custom policy. thank you!
variable "s3_endpoint_policy" { | ||
description = "Provide a policy for the S3 endpoint" | ||
type = string | ||
default = "" |
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.
will this fail if users do not provide a policy - I think this should perhaps be null
instead.
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. |
Description
In case where s3 endpoints are enable, you could now attach a policy for this endpoint.
For exemple:
you could use the following lines to attach this policy to the S3 endpoint: