Skip to content

Instantly share code, notes, and snippets.

@ekristen
Last active September 18, 2023 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekristen/e20a976653d0624957add5b4d2ef64ba to your computer and use it in GitHub Desktop.
Save ekristen/e20a976653d0624957add5b4d2ef64ba to your computer and use it in GitHub Desktop.

Files for setting up a test for restic assume role

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::012345678901:role/restic-test-role"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"sts:ExternalId": "restic-test"
},
"StringLike": {
"sts:RoleSessionName": "restic-test-*"
}
}
}
]
}
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::012345678901:role/restic-test-role"
},
"Action": "sts:AssumeRole"
}
]
}
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::012345678901:role/restic-test-role"
},
"Action": [
"s3:*"
],
"Resource": "arn:aws:s3:::restic-test-bucket/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment