Skip to content

Conversation

maleko66
Copy link
Contributor

Description

fixes dynamic condition typo in repository_policy_statements logic that was introduced in version 3.0.0.

Motivation and Context

fixes the following terraform error:

Error: Unsupported attribute

│ on .terraform/modules/example/main.tf line 161, in data "aws_iam_policy_document" "repository":
│ 161: for_each = statement.value.conditions != null ? statement.value.condition : []
│ ├────────────────
│ │ statement.value is object with 9 attributes

│ This object does not have an attribute named "condition".

Breaking Changes

none

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@maleko66 maleko66 changed the title fix dynamic condition typo in repository_policy_statements logic fix: dynamic condition typo in repository_policy_statements logic Aug 15, 2025
@maleko66 maleko66 changed the title fix: dynamic condition typo in repository_policy_statements logic fix: Dynamic condition typo in repository_policy_statements logic Aug 15, 2025
@phene
Copy link
Contributor

phene commented Aug 15, 2025

Wow, beat me to this by 1 minute!

@bryantbiggs bryantbiggs merged commit 0adb5f6 into terraform-aws-modules:master Aug 15, 2025
8 of 10 checks passed
antonbabenko pushed a commit that referenced this pull request Aug 15, 2025
## [3.0.1](v3.0.0...v3.0.1) (2025-08-15)

### Bug Fixes

* Dynamic condition typo in repository_policy_statements logic ([#60](#60)) ([0adb5f6](0adb5f6))
@antonbabenko
Copy link
Member

This PR is included in version 3.0.1 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants