Skip to content

Commit

Permalink
test(e2e): reduce scope of e2e test permissions (#5539)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe authored Dec 4, 2023
1 parent 748caa6 commit 3eb8d7e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/e2e/IntegTestResourcesStack.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,22 @@
"Effect": "Allow",
"Principal": {
"Federated": "cognito-identity.amazonaws.com"
},
"Condition": {
"StringEquals": {
"cognito-identity.amazonaws.com:aud": {
"Ref": "IntegTestIdentityPool"
}
},
"ForAnyValue:StringLike": {
"cognito-identity.amazonaws.com:amr": "unauthenticated"
}
}
}
],
"Version": "2012-10-17"
},
"ManagedPolicyArns": ["arn:aws:iam::aws:policy/AdministratorAccess"]
"ManagedPolicyArns": ["arn:aws:iam::aws:policy/AmazonCognitoReadOnly"]
},
"Metadata": {
"aws:cdk:path": "IntegTestResourcesStack/IntegTestIdentityPoolUnauthRole/Resource"
Expand Down

0 comments on commit 3eb8d7e

Please sign in to comment.