-
-
Notifications
You must be signed in to change notification settings - Fork 124
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: cleans up principals lambda logic to separate policy doc #105
Conversation
/terratest |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
/terratest |
/terratest |
main.tf
Outdated
} | ||
|
||
data "aws_iam_policy_document" "lambda_access" { | ||
count = module.this.enabled ? 1 : 0 |
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.
if var.principals_lambda
is empty, do we need to create this aws_iam_policy_document
at all?
condition.values
will be an empty list
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.
@aknysh yeah, this is how the other policy docs are built, so I was just staying with the pattern that is already established + decrease the risk of breaking something. Think we should rework?
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.
let's have it as it was before.
We can update it in a separate PR
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.
@Gowiem LGTM, please see comments
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.
please see comments
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.
please see comments
Co-authored-by: Andriy Knysh <aknysh@users.noreply.github.com>
/terratest |
what
var.principals_lambda
policieswhy
references