-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Implementation of acl grants #3728
Merged
gdavison
merged 11 commits into
hashicorp:master
from
Chhed13:support-s3-bucket-acl-policies
Mar 4, 2020
Merged
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6549e72
Implementation of acl grants and update in docs
62694d8
Merge branch 'master' into support-s3-bucket-acl-policies
Chhed13 844ef9b
Error check on fallback
8d95f64
Merge pull request #1 from terraform-providers/master
Chhed13 4c25528
Merge branch 'master' into support-s3-bucket-acl-policies
85cb44f
change grant to schema.HashSet type, re-evaluate grant logic, fix min…
10a70c4
fix docs
93ce16a
removed unused validator
51717d4
Merge remote-tracking branch 'upstream/master' into support-s3-bucket…
Chhed13 a5638e4
s3 bucket grant implementation: fix docs and tests
Chhed13 b0c2939
s3 bucket grant implementation: fix fmt
Chhed13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
To prevent issues with setting the state during
Read
and other unforeseen issues with the initial implementation, I would recommend addingComputed: true
to this attribute for now. We can always adjust this in the future and add a note in the documentation for now, e.g.To enable drift detection for this configuration, it must be configured.
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.
Computed: true
leads to non-tacking in case of removal from TF resource, is it really needed?It will work only if it was set explicitly, I don't see the way to track it always now (answered blow).
Of course I can miss some, but on tests
Computed: true
make the situation worse.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.
Day passed and I understand the idea of using
Computed: true
and always save the state, it will work. And if you'll say that it is better way - I change the PR to this version.The only thing I miss - that it will no the way back from
computed
, because it will make a lot of changes in state files