Initialize connection to STS
options parameter must include values for :aws_access_key_id and :aws_secret_access_key in order to create a connection
iam = STS.new( :aws_access_key_id => your_aws_access_key_id, :aws_secret_access_key => your_aws_secret_access_key )
Assume Role
docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html
Assume Role with SAML
docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithSAML.html
Get federation token
Minimum length of 2. Maximum length of 32.
that are granted to the federated user
Minimum length of 1. Maximum length of 2048.
should last.
docs.aws.amazon.com/STS/latest/APIReference/API_GetFederationToken.html