Skip to content
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: support JSON inputs for policy document when IAM policy/statements are not set as Terraform objects #28

Merged
merged 2 commits into from
Jun 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 1 addition & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ data "aws_iam_policy_document" "this" {
lifecycle {
precondition {
condition = var.iam_policy_statements == null || var.iam_policy == null
error_message = "Only 1 of var.iam_policy and var.iam_policy_statments may be used, preferably var.iam_policy."
}
precondition {
condition = var.iam_policy_statements != null || var.iam_policy != null
error_message = "Exactly 1 of var.iam_policy and var.iam_policy_statments may be used, preferably var.iam_policy."
error_message = "Only 1 of var.iam_policy and var.iam_policy_statements may be used, preferably var.iam_policy."
gberenice marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
Expand Down