-
Notifications
You must be signed in to change notification settings - Fork 825
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 get resource: xxxPostConfirmation from 'function' category #13521
Comments
Hey @OperationalFallacy, thank you for reaching out. Could you check the |
There were probably some, but I gave up and deleted env. The underlying issues that lead to these deployment failures and causing me headaches are these
|
To add permissions/provide access to a resource for a Lambda functions, the expected flow is to run
Are you referring to the custom callout lambda function deployed by the auth category? This callout function was implemented to extend/customize the behavior of AWS Cognito as CloudFormation didn't yet fully support all the attributes. |
I had to resort to creating a custom category, which has a CloudFormation to store API information in SSM parameter and configure IAM permissions for the Cognito trigger functions. Which still wouldn't solve the problem, because GrapqlAPI is using IAM "Admin" roles to allow access from Lambda functions. So I had to add these functions roles to My question is what Amplify's "official" workaround to setup permission on Cognito trigger Lambda's to access GraphQL?
The questions I have about hosted UI: do I need hosted UI for anything? I'm not using it, the website not referencing it in any way. How do disable it, if it's not required. |
@OperationalFallacy 👋 sorry to hear about the rough experience, but a few notes:
|
Thank you, that's important bits of information. Regarding Cognito trigger functions, even before getting to the resources generated correctly, the permissions must be configured and cli can't do it because of circular dependencies. Again, this is for granting api access to Cognito Lambda triggers. Regarding I hope you'll migrate all this mess to cdk one day, so we can have proper abstraction and interfaces to work with resources. |
|
How did you install the Amplify CLI?
yarn
If applicable, what version of Node.js are you using?
20.x
Amplify CLI Version
12.10.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.
yes, added custom category amplifyTriggersPermissions to allow cognito triggers access grapqhl; I don't think its going "just work", I read more about grapqhl auth mode. Anyways, now I'm trying to clean up these triggers and it fails.
Describe the bug
can not delete PostConfirmation function, amplify push fails with obscure error "🛑 Cannot get resource: xxxPostConfirmation from 'function' category."
Expected behavior
Should delete function
Reproduction steps
I'm not sure how to reproduce it.
Project Identifier
not sure, sending report fails :(
Log output
Additional information
can somebody explain if it's conceptually even possible the way amplify manages resources to configure cognito lambda triggers to access graphql?
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: