Skip to content

Commit

Permalink
add Cognito access instead of excessive permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Park committed Dec 4, 2023
1 parent 1ed55ca commit 0a4a1b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/serverless-deploy-iam/bin/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class ServiceDeployIAM extends cdk.Stack {
{
name: 'IAM',
prefix: `arn:aws:iam::${accountId}:role`,
qualifiers: [`*${serviceName}*`],
qualifiers: [`${serviceName}*`, `Cognito-${serviceName}*`],
actions: [
"iam:CreateRole",
"iam:PassRole",
Expand Down

0 comments on commit 0a4a1b0

Please sign in to comment.