Skip to content

Commit 2701167

Browse files
authored
add sso credentials troubleshooting notes (aws-amplify#6753)
* add sso credentials troubleshooting notes * spellcheck
1 parent 4a1a319 commit 2701167

File tree

1 file changed

+15
-0
lines changed
  • src/pages/[platform]/tools/cli/project/troubleshooting

1 file changed

+15
-0
lines changed

src/pages/[platform]/tools/cli/project/troubleshooting/index.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,21 @@ export UI_BUILDER_CODEGENJOB_TIMEOUT=300000
241241
amplify pull
242242
```
243243

244+
## Troubleshooting "Failed to get profile credentials"
245+
246+
If you receive the following error and are using AWS IAM Identity Center (previously AWS SSO), you may be missing the [`credential_process` workaround](/[platform]/start/getting-started/installation/#manually-configure-the-amplify-cli)
247+
248+
```console
249+
🛑 Failed to get profile credentials
250+
Cannot read properties of undefined (reading 'accessKeyId')
251+
252+
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/
253+
```
254+
255+
### "Unexpected token A in JSON at position 0"
256+
257+
If you receive this error and are using AWS IAM Identity Center (previously AWS SSO), this error can be caused by selecting the `sso-session` entry when prompted for an AWS profile in Amplify CLI workflows. If this occurs, re-run the previous command and select the associated SSO profile.
258+
244259
## Deployment Best Practices
245260

246261
This section describes the various best practices which help developers avoid deployment errors and scaling problems in their Amplify projects.

0 commit comments

Comments
 (0)