Skip to content

Fix issue with inline_policy which conflict with aws_iam_role_policy resource - #246

Draft
titilambert wants to merge 1 commit into
masterfrom
08-11-fix_issue_with_inline_policy_which_confict_with_aws_iam_role_policy_resource
Draft

Fix issue with inline_policy which conflict with aws_iam_role_policy resource#246
titilambert wants to merge 1 commit into
masterfrom
08-11-fix_issue_with_inline_policy_which_confict_with_aws_iam_role_policy_resource

Conversation

@titilambert

@titilambert titilambert commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

Fix issue with inline_policy which conflict with aws_iam_role_policy resource which make terraform create/delete policy alternatively at each apply.

@titilambert
titilambert marked this pull request as ready for review August 11, 2025 20:52

titilambert commented Aug 11, 2025

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@titilambert titilambert changed the title Fix issue with inline_policy which confict with aws_iam_role_policy resource Fix issue with inline_policy which conflict with aws_iam_role_policy resource Aug 11, 2025
Comment thread deployment/roles.tf
}
}

resource "aws_iam_role_policy" "simulate_principal_policy_access" {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be better to use an aws_iam_policy + aws_iam_role_policy_attachment resource here instead of aws_iam_role_policy if the problem was with inline policy, because I think aws_iam_role_policy still results in creation of inline policy

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.

2 participants