We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c80c92b commit 03380a8Copy full SHA for 03380a8
main.tf
@@ -25,7 +25,7 @@ resource "aws_lambda_function" "this" {
25
26
lifecycle {
27
precondition {
28
- condition = var.create_role && var.lambda_role != []
+ condition = !var.create_role || var.create_role && var.lambda_role == ""
29
error_message = "The 'create_role' and 'lambda_role' variables should not be used together. When creating a role, use 'role_name' to set the name."
30
# The lambda_role variable should only be used to attach a pre-existing role, and will do nothing
31
# if create_role is true.
0 commit comments