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

Cannot read properties of undefined (reading 'accessKeyId') #34

Closed
dr-dolittle opened this issue Sep 2, 2023 · 2 comments
Closed

Cannot read properties of undefined (reading 'accessKeyId') #34

dr-dolittle opened this issue Sep 2, 2023 · 2 comments

Comments

@dr-dolittle
Copy link

During yarn deploy-ui and more specifically amplify init --providers $AMPLIFYPROVIDERS --yes I get the error

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

on Ubuntu Ubuntu 22.04.3 LTS.

@dr-dolittle
Copy link
Author

Th problem is related to SSO authentication in combination with the Amplify CLI. To resolve the issue add the following line to the central profile in ~/.aws/config:

credential_process = aws sso login --profile central

@dr-dolittle
Copy link
Author

See also aws-amplify/amplify-cli#4488

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

No branches or pull requests

1 participant