Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lmammino/02fef8ce0cc22a45f219fe4f47fcf20c to your computer and use it in GitHub Desktop.
Save lmammino/02fef8ce0cc22a45f219fe4f47fcf20c to your computer and use it in GitHub Desktop.
How to revoke temporary credentials for a given Role on AWS (from https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_revoke-sessions.html)
{
"Version": "2012-10-17",
"Statement": {
"Effect": "Deny",
"Action": "*",
"Resource": "*",
"Condition": {
"DateLessThan": {"aws:TokenIssueTime": "2014-05-07T23:47:00Z"}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment