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

How do I add AdminQueries when i am using Imported Cognito Auth #13666

Open
rexwreyes opened this issue Mar 21, 2024 · 3 comments
Open

How do I add AdminQueries when i am using Imported Cognito Auth #13666

rexwreyes opened this issue Mar 21, 2024 · 3 comments
Labels
auth Issues tied to the auth category of the CLI documentation Add or update documentation feature-request Request a new feature question General question

Comments

@rexwreyes
Copy link

Amplify CLI Version

12.10.1

Question

How do I add AdminQueries when i am using Imported Cognito Auth? I have been following the docs in setting up everything. When i have my auth set up to use an existing cognito, running amplify update auth returns "Updating imported Auth resource is not supported". I am not trying to update the existing i want to add AdminQueries. Is this just not supported?

@rexwreyes rexwreyes added pending-triage Issue is pending triage question General question labels Mar 21, 2024
@rexwreyes
Copy link
Author

Just to add some context here. I have an app with different backend environments (Prod, stage, dev) and i want them different other than the auth which is a shared cognito user pool. the 1st environment i created has the adminqueries as the auth was created there and not imported

@ykethan
Copy link
Member

ykethan commented Mar 21, 2024

@rexwreyes thank you for reaching out. This is currently an unsupported workflow, as Amplify CLI does not maintain the lifecycle of an imported auth resource. Did notice the documentation provides information on using a existing auth resource which may be attributing this.
You should be able to manually create a REST API and function with access to the imported auth resource and build the function queries.
Marking this feature-request and documentation to add callout on using a imported auth resource.

@ykethan ykethan added auth Issues tied to the auth category of the CLI documentation Add or update documentation feature-request Request a new feature and removed pending-triage Issue is pending triage labels Mar 21, 2024
@rexwreyes
Copy link
Author

@ykethan the documentation i was following was this, then this.

Thanks for the response. i think i'll try doing what i need through aws-sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues tied to the auth category of the CLI documentation Add or update documentation feature-request Request a new feature question General question
Projects
None yet
Development

No branches or pull requests

2 participants