Open josefaidt opened 9 months ago
Marking as bug due to stack trace.
similar error message will occur on amplify add analytics
with an imported auth resource.
ConfigurationError: The imported auth config is not compatible with the specified analytics config
at configure (C:\snapshot\amplify-cli\build\node_modules\@aws-amplify\amplify-category-analytics\lib\provider-utils\awscloudformation\service-walkthroughs\pinpoint-walkthrough.js:61:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.executeAmplifyCommand (C:\snapshot\amplify-cli\build\node_modules\@aws-amplify\amplify-category-analytics\lib\index.js:169:3)
at async executePluginModuleCommand (C:\snapshot\amplify-cli\build\node_modules\@aws-amplify\cli-internal\lib\execution-manager.js:139:5)
at async executeCommand (C:\snapshot\amplify-cli\build\node_modules\@aws-amplify\cli-internal\lib\execution-manager.js:37:9)
at async Object.run (C:\snapshot\amplify-cli\build\node_modules\@aws-amplify\cli-internal\lib\index.js:121:5)
🛑 There was an error adding the analytics resource
mitigation steps: enable allowUnauthenticatedIdentities
on Cognito identity pool.
https://github.com/aws-amplify/amplify-cli/blob/52aea18fddd95af6f855d1c6d9e3e4b16a8d1146/packages/amplify-category-analytics/src/provider-utils/awscloudformation/service-walkthroughs/pinpoint-walkthrough.ts#L67
Can someone clarify what is the solution if auth was imported with amplify import auth
and now amplify add anayltics
throws The imported auth config is not compatible with the specified analytics config
?
mitigation steps: enable allowUnauthenticatedIdentities on Cognito identity pool.
@ykethan what if identity pool is not configured, any ideas what can be done in that case?
We just faced this error as well. Any workarounds ?
I get the same issue, but when I run "amplify update storage" after linking a User Pool (with an identity pool) in Amplify Studio, configuring Storage in Studio, and pulling to my local machine.
Studio gives me this message in Storage, Identity Pool is configured:
We just faced this error as well. Any workarounds ?
-> Create an identity pool. -> Connect it with the user pool you imported. -> Remove the imported auth with 'amplify remove auth' -> Re-import the auth along with the created identity pool using 'amplify import auth'
So we still must create a new User pool, or can we remove the old, attach the identity pool, and re-add it?
We are also getting the same error. We are using a custom cognito user pool with Azure AD SAML provider.
I got it working by creating the S3 storage bucket, and assigning proper role permissions to the Cognito user pool for access. Then the import worked.
How did you install the Amplify CLI?
pnpm
If applicable, what version of Node.js are you using?
20.x
Amplify CLI Version
12.4.0
What operating system are you using?
mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
n/a
Describe the bug
Expected behavior
amplify add storage
amplify add storage
with--debug
amplify add storage
rather than at the endReproduction steps
amplify init -y
amplify import auth
> Cognito User Pool onlyamplify add storage
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm: