Identity Fed Setup for AWS

sudo apt-get install ruby
sudo apt-get install rubygems
sudo gem install json
sudo gem install cgi-spa
sudo gem install rest-open-uri
sudo apt-get install libxslt-dev libxml2-dev
sudo apt-get install build-essential
Create New IAM User to make API calls to STS. (User = identityfed)
Attach a Policy using Policy Generator with Amazon STS (the above ARN have to used.)

Access Key ID:
AKIADFAGFASDADSASD
Secret Access Key:
irJa8tNbsdfasddaLK:J;kj;jmL:HLIUh

Create an IAM Role (UnniRole)

Attached Policy Looks as Follows:

{
 "Version": "2012-10-17",
 "Statement": [
  {
    "Sid": "Stmt1384322508000",
    "Effect": "Allow",
    "Action": [
    "sts:*"
  ],
    "Resource": [
    "arn:aws:iam::122223333444455551:role/UnniRole"
  ]
}
]
}

AWS Ruby Script

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s