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

[ Bug ] Modify IAM template file to remove hyphens #165

Open
gwright99 opened this issue Dec 14, 2024 · 0 comments
Open

[ Bug ] Modify IAM template file to remove hyphens #165

gwright99 opened this issue Dec 14, 2024 · 0 comments

Comments

@gwright99
Copy link
Collaborator

Issue reported from the field in Dec 2024 re how some entries are defined in permissions.md:

In the Sid "InteractWithTFPrefixedIAMResources" section, the current format includes dashes (-) at the end of the resource strings, which led to errors in my case. The Terraform resource aws_iam_role.ec2 creates a role with underscores (_) instead of dashes in its name, causing a mismatch.
...
I would recommend removing the trailing dashes to align with Terraform's role naming convention:

"Resource": [
"arn:aws:iam::AWS_ACCOUNT_REPLACE_ME:role/tf-APP_NAME_REPLACE_ME-",
"arn:aws:iam::AWS_ACCOUNT_REPLACE_ME:policy/tf-APP_NAME_REPLACE_ME-
",
"arn:aws:iam::AWS_ACCOUNT_REPLACE_ME:instance-profile/tf-APP_NAME_REPLACE_ME-*"
]

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

No branches or pull requests

1 participant