Hi,
I want to send a temporary password and the verification code in the email. I'm using the signUp function from aws-amplify/auth to create a new user and set the 'custom:temporaryPassword' attribute.
I'm also using the defineAuth function from @aws-amplify/backend to define and configure auth resource. In this configuration, I have described the 'custom:temporaryPassword' attribute as a custom user attribute and set the customMessage trigger to a custom Lambda function customSignUpEmail/resource.
However, I get this error
failed: ValidationError: Circular dependency between resources: [storage0EC3F24A, auth179371D7, data7552DF31, CustomVerifiedPermissions4A29311F, function1351588B, AmplifyStack7460781E]
Environment information
Describe the bug
Hi, I want to send a temporary password and the verification code in the email. I'm using the signUp function from aws-amplify/auth to create a new user and set the 'custom:temporaryPassword' attribute.
I'm also using the defineAuth function from @aws-amplify/backend to define and configure auth resource. In this configuration, I have described the 'custom:temporaryPassword' attribute as a custom user attribute and set the customMessage trigger to a custom Lambda function customSignUpEmail/resource.
However, I get this error failed: ValidationError: Circular dependency between resources: [storage0EC3F24A, auth179371D7, data7552DF31, CustomVerifiedPermissions4A29311F, function1351588B, AmplifyStack7460781E]
I attached my backend.ts here message.txt
Reproduction steps
Run
npx ampx sandbox --profile wlnzportalsdev --debug --once
Circular error will show up