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: unhandled error when AWS config or profile don't exist #14035

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

jonscheiding
Copy link
Contributor

Description of changes

If the AWS profile specified in the Amplify config doesn't exist, or if the AWS config files themselves don't exist, various Amplify
operations log this error:

🛑 Failed to get profile credentials
Cannot read properties of undefined (reading 'accessKeyId')

Depending on the operation and circumstances, this can be just a spurious message that doesn't interfere with the operation, or it can be an
actual error.

Issue #, if available

Description of how you validated changes

  • Tested locally with modified version and a missing AWS profile

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.

@jonscheiding jonscheiding requested a review from a team as a code owner December 6, 2024 19:16
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.

1 participant