-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/cognito permissions #29
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question about the IAM change 🙂
@@ -175,7 +175,7 @@ export class ServiceDeployIAM extends cdk.Stack { | |||
{ | |||
name: 'IAM', | |||
prefix: `arn:aws:iam::${accountId}:role`, | |||
qualifiers: [`${serviceName}*`], | |||
qualifiers: [`*${serviceName}*`], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem right? 🤔 Why do we need this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it was for addressing this error (Note Cognito-
in the role name):
Resource handler returned message: "User: arn:aws:sts::<redacted>:assumed-role/<serviceName>-deploy-iam-ServiceRolev128EB9C79-2NHYkk36Zi32/AWSCloudFormation is not authorized to perform: iam:GetRole on resource: role Cognito-<serviceName>-stg-UnAuth because ....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Add Cognito permissions to Serverless Deployer Role