Open eechih opened 7 months ago
Hey @eechih, thank you for reaching out. The issue appears to be similar to https://github.com/aws-amplify/amplify-backend/issues/1375, refer to the comment https://github.com/aws-amplify/amplify-backend/issues/1375#issuecomment-2079388509 using override to add the permissions Marking this as feature request.
@ykethan Thanks a lot, that worked :)
Hi @ykethan , I checked the doc, seems like we still don't have the AdminLinkProviderForUser
option, and that could cause some issue, for example when we try to assign this action or permission to pre-signup
trigger, right? And I don't think we can directly access this trigger using backend.auth.resources
and add the action manually. So what is your opinion?
Update:
I succeeded to add this AdminLinkProviderForUser
permission to the lambda trigger by importing the lambda resource into the amplify backend
, and then added an inline policy by following your workaround, many thanks!
Btw, I think it would be better to add at least a note
to tell devs that if they want to configure pre-signup
or post-confirmation
triggers, they can import them into amplify backend
like other normal lambda function.
Environment information
Description
I have a function that needs to use the AdminLinkProviderForUserCommand command, but the "manageUsers" action does not seem to contain the 'cognito-idp:AdminLinkProviderForUser' action.
The following error occurs:
Is there any solution? Thanks.