-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Feature Request - S3 ACL Policy Grant #20
Comments
Hi @forestoden ! @Chhed13 finally got his PR hashicorp/terraform-provider-aws#3728 merged (congrats & 🎉🎉🎉🎉🎉🎉🎉 ) Since that time this module didn't get enough attention from me or other community member to add support for If you have a possibility to add it, please do. Please keep in mind potential breaking change (see hashicorp/terraform-provider-aws#12332) and make a proper workaround, if necessary. |
Oh wow, I didn't realize it was that new or that the PR had been open for so long! We just got the requirement this week, perfect timing I guess. I'll come up to speed with that breaking change. This is my first time contributing to an open source Terraform Module, I don't see any test suites, is testing just done manually? |
Testing = run code in |
Quick update, I was able to get the code in place for this but unfortunately that bug hashicorp/terraform-provider-aws#12332 looks like it has the potential to cause issues even if users aren't setting I tried a couple workarounds but couldn't get anything to work quite right. I'll monitor that issue, but for now I'm stuck. Once that gets fixed, I'll come back to this |
Hi there,
Avoid it, because it causes state flapping. |
Hey @Chhed13 I just pushed my code to my fork here: https://github.com/forestoden/terraform-aws-s3-bucket/tree/add-acl-grants if you wanted to take a look but I'll try to describe the problem and I was able to reproduce it off my fork.
My plan looks something like this
I tried adding a grant in TF to configure the owner with |
1 similar comment
Hey @Chhed13 I just pushed my code to my fork here: https://github.com/forestoden/terraform-aws-s3-bucket/tree/add-acl-grants if you wanted to take a look but I'll try to describe the problem and I was able to reproduce it off my fork.
My plan looks something like this
I tried adding a grant in TF to configure the owner with |
Hi,
|
Ok, I can see an issue. |
Hi, I'm using the version 2.51.0 as a workaround. Thank you, guys. |
Is there any idea if/when this will be merged? I'd like to use this module but the lack of grant support is an issue for me. |
@jamessthompson If there is anyone who can make a PR adding this feature to the module, we will have it. I don't have time to make this myself. Anyone? |
I've been following hashicorp/terraform-provider-aws#12332 hoping for a resolution there before coming back to this. I don't have the time to try to work around that bug in order to push this through |
For my module I'm doing the following
|
This is great but I have a slightly different problem and I'm curious if anyone else runs in to this. (tldr; I think my problem would be resolved by having a separate resource to create grants, e.g. I have a bucket in a primary account that I plan to use in several workspaces (pulled in as a data resource using a specific provider). I want to add a separate grant for each workspace (each workspace uses a separate account). I envision something like this-
EDIT: For a workaround, I am cooking up an external resource to call a script to "append" this out-of-band. |
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi there,
We have a requirement to implement Bucket ACLs on a few buckets in S3 and have been using this module for other buckets we have created, so we'd like to keep some consistency if possible. It looks like this module doesn't support grants (https://www.terraform.io/docs/providers/aws/r/s3_bucket.html#grant).
Is this not supported by design? I know there's some weirdness with
acl
vsgrant
using the S3 Resources. I have some time over the weekend and might be able to work on this, but if it's purposefully not supported I wouldn't want to waste my timeThe text was updated successfully, but these errors were encountered: