if (FALSE) {
svc <- sts()
#
svc$assume_role(
ExternalId = "123ABC",
Policy = "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"A...",
RoleArn = "arn:aws:iam::123456789012:role/demo",
RoleSessionName = "testAssumeRoleSession",
Tags = list(
list(
Key = "Project",
Value = "Unicorn"
),
list(
Key = "Team",
Value = "Automation"
),
list(
Key = "Cost-Center",
Value = "12345"
)
),
TransitiveTagKeys = list(
"Project",
"Cost-Center"
)
)
}
Run the code above in your browser using DataLab