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: error message when secret access key is invalid on init #13758

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

hi1280
Copy link

@hi1280 hi1280 commented May 2, 2024

Description of changes

Changed amplify init error message when the AWS secret access key is invalid, from a message saying Forbidden to a helpful message.

Issue #, if available

Fix #13342

Description of how you validated changes

Added unit test for invalid secret access key.
when running amplify-dev init, a new error message will appear as follows.

? Please choose the profile you want to use default
🛑 The request signature we calculated does not match the signature you provided

Resolution: Check your AWS Secret Access Key
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/

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.

@hi1280 hi1280 marked this pull request as ready for review May 2, 2024 12:35
@hi1280 hi1280 requested a review from a team as a code owner May 2, 2024 12:35
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.

amplify init says 🛑 Forbidden with no explanation
1 participant