Skip to content
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

Merged
merged 12 commits into from
Dec 4, 2023
Merged

Feature/cognito permissions #29

merged 12 commits into from
Dec 4, 2023

Conversation

crispy101
Copy link
Contributor

Add Cognito permissions to Serverless Deployer Role

@crispy101 crispy101 requested a review from a team as a code owner November 29, 2023 01:21
@crispy101 crispy101 requested review from hubertott, TheOrangePuff and a team and removed request for a team and hubertott November 29, 2023 01:21
Copy link
Contributor

@TheOrangePuff TheOrangePuff left a 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}*`],
Copy link
Contributor

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?

Copy link
Contributor Author

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 ....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

packages/serverless-deploy-iam/bin/app.ts Show resolved Hide resolved
@crispy101 crispy101 merged commit 89ac137 into main Dec 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants