aws_iam_policy_document.source_policy_documents that contain multiple conditions are dropped on output #26485
Labels
bug
Addresses a defect in current functionality.
service/iam
Issues and PRs that pertain to the iam service.
Milestone
I am using aws_iam_policy_document to combine multiple JSON policy documents into a single aws_organizations_policy. Everything worked until I introduced a policy with a StringNotLike and Null condition. The Null condition is being dropped.
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v1.2.7
on windows_amd64
provider registry.terraform.io/hashicorp/aws v4.27.0
Affected Resource(s)
Terraform Configuration Files
scp.json:
Plan Output
Expected Behavior
Both the StringNotLike condition and the Null condition present in the output.
Actual Behavior
Only the StringNotLike condition present in the output, the Null condition is dropped.
Steps to Reproduce
terraform plan
The text was updated successfully, but these errors were encountered: