Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Question about AWS IAM Role
Post Flair (click to view more posts with a particular flair)
Post Body

I'm follwoing this example page to create an AWS IAM Role:

https://aws.amazon.com/premiumsupport/knowledge-center/iam-assume-role-cli/

And have created this:

{
    "Version": "2012-10-17",
    "Statement": {
        "Effect": "Allow",
        "Principal": { "AWS": "arn:aws:iam::123456789012:role/example2" },
        "Action": "sts:AssumeRole"
    }
}

But when I run this cli command, the document always fails:

aws iam create-role --role-name example-role --assume-role-policy-document file://example-role-trust-policy.json

My understanding is that I'm attaching an IAM Role trust relationship to an IAM Role. This way a user, Bob, can assume an IAM Role to run certain commands. And this way I don't have to use IAM Access / Secret keys for said commands.

I apologize if this is a dumb question... but I'm unsure why this policy document keeps breaking.

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
34,349
Link Karma
3,057
Comment Karma
31,179
Profile updated: 4 days ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago