-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix bucket permission #4
Conversation
@@ -85,5 +86,5 @@ data "aws_caller_identity" "current" {} | |||
locals { | |||
current_account_id = data.aws_caller_identity.current.account_id | |||
s3_bucket_arn = module.this.enabled ? module.storage[0].bucket_arn : "" | |||
s3_object_prefix = format("%s/AWSLogs/%s/Config/*", local.s3_bucket_arn, local.current_account_id) | |||
s3_object_prefix = format("%s/AWSLogs/*", local.s3_bucket_arn) |
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.
Do you know why the previous constraint failed? It's nice that it was scoped to the account id.
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.
Yes, because previously we were only allowing a single account to write to the bucket. Now, we are allowing all accounts in the org to write there.
6c6f94b
to
5093775
Compare
/test all |
/test all |
what
why