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

A double slash added in IAM Role resource ARN #35

Open
rileytg opened this issue Sep 10, 2021 · 3 comments
Open

A double slash added in IAM Role resource ARN #35

rileytg opened this issue Sep 10, 2021 · 3 comments

Comments

@rileytg
Copy link

rileytg commented Sep 10, 2021

Removing the slash fixed my issue.

This is my terraform run after for clarity:

 ~ Resource = "arn:aws-us-gov:iam::12345678:role//server-test" -> "arn:aws-us-gov:iam::12345678:role/server-test"
@iann0036
Copy link
Owner

Hey @rileytg,

Thanks for raising!

Do you have the Action this resource was attached to?

@rchildress87
Copy link

Looks like iamlive v1.1.7 is still doing this for action iam:ListAttachedRolePolicies:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "iam:ListAttachedRolePolicies"
            ],
            "Resource": "arn:aws:iam::<redacted>:role//update-stores-dev"
        },
        {
            "Effect": "Allow",
            "Action": [
                "iam:ListAttachedRolePolicies"
            ],
            "Resource": "arn:aws:iam::<redacted>:role//request-savings-dev"
        },
        {
            "Effect": "Allow",
            "Action": [
                "iam:ListAttachedRolePolicies"
            ],
            "Resource": "arn:aws:iam::<redacted>:role//tracker-dev"
        }
    ]
}

iann0036 added a commit that referenced this issue Feb 28, 2024
@iann0036
Copy link
Owner

Hey @rchildress87,

Thanks for the update. I've added another tweak to this tricky Regex problem. Could you give v1.1.8 a try now?

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

3 participants