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

fix: parse cognito pools with service role #13365

Merged
merged 3 commits into from
Oct 27, 2023
Merged

fix: parse cognito pools with service role #13365

merged 3 commits into from
Oct 27, 2023

Conversation

rtpascual
Copy link
Contributor

Description of changes

Correctly parse Cognito user/identity pools with service-role prepended (e.g. arn:aws:iam::<account-id>:role/service-role/roleName).

Issue #, if available

#13345

Description of how you validated changes

Manually with amplify-dev import auth and Cognito user/identity pools with service-role.
Updated unit tests and added IAM regex validation for roles.

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)
  • New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
  • Pull request labels are added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rtpascual rtpascual requested a review from a team as a code owner October 24, 2023 21:12
sobolk
sobolk previously approved these changes Oct 25, 2023
sobolk
sobolk previously approved these changes Oct 25, 2023
@rtpascual rtpascual merged commit 1513938 into aws-amplify:dev Oct 27, 2023
4 checks passed
@rtpascual
Copy link
Contributor Author

rtpascual commented Oct 27, 2023

Failing e2e test is a regression the UI Builder service rolled out to eu-west-2 where the React app compiles with the error Module not found: Can't resolve './utils/' in <projectDir>/src/ui-components.

Manually verified this is working in us-east-1 where the regression has not reached yet.

@rtpascual rtpascual deleted the fix-cognito-service-role branch April 5, 2024 17:11
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.

3 participants