-
Notifications
You must be signed in to change notification settings - Fork 8
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
added cloudtrailEnable option to fix #173 #243
Conversation
@@ -83,6 +83,7 @@ data "aws_iam_policy_document" "operator_access" { | |||
resources = ["arn:aws:s3:::*${local.domain_name}/*"] | |||
} | |||
|
|||
<% if eq(index .Params `cloudtrailEnable`) "yes" %> |
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.
Needs a space between eq
and (
, this is causing the validation to fail. Need to improve the error output there for sure..
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.
Created commitdev/zero#431 to improve error handling
@@ -93,7 +94,7 @@ data "aws_iam_policy_document" "operator_access" { | |||
effect = "Allow" | |||
actions = ["s3:GetObject", "s3:PutObject"] | |||
resources = ["arn:aws:s3:::${data.terraform_remote_state.shared.outputs.cloudtrail_bucket_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.
It's more permissive but how about instead of making this whole block conditional we just wildcard it to allow access to all cloudtrail buckets. "arn:was:s3:::*-cloudtrail/*"
(invalidates the comment above)
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.
Makes more sense
fa31402
to
4e49075
Compare
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.
Thanks for the contribution!
No description provided.