Closed charith-eLovu closed 3 weeks ago
Hey @charith-eLovu, thank you for reaching out. It appears there is an update action on the user pool attribute. As a quick check, does the Auth resource have any override configure? or does the custom resource interact with the Auth resource?
Hi @ykethan , i did not make any changes on the auth resource , nor does my custom resource utilise the auth resource . it just utilises my functions .
const dependencies: AmplifyDependentResourcesAttributes =
AmplifyHelpers.addResourceDependency(
this,
amplifyResourceProps.category,
amplifyResourceProps.resourceName,
[
{
category: 'function', // api, auth, storage, function, etc.
resourceName: 'MyFunction', // find the resource at "amplify/backend/<category>/<resourceName>"
} /* add more dependencies as needed */,
]
);
@charith-eLovu interesting. To further dive into this issue, could you run amplify diagnose --send-report
and provide us the Project Identifier
output from the terminal?
@ykethan Project Identifier: 98f93e5491855496140f48d44499b6cc
Hi @ykethan , wanted to check if you got a chance to look at this.
Hey @charith-eLovu, tried reproducing the issue similar to the project resources.
amplify add auth
with 2 triggersamplify add analytics
amplify add function
, added 2 function with 1 depending on analyticsamplify push
amplify add custom
, referenced the 2 created functions and referenced in a sample stepfunctionamplify push
but did not observe any error messages on auth attributes being modifies.
On the push, do you observe any changes to the requiredAttributes
in the cli-inputs.json
file?
additionally, could you provide us the a minimal reproduction steps on the failure caused on the custom resource.
could you also try running amplify update auth
, reselecting similar options and running push ?@charith-eLovu does the auth resource contain any custom attributes? if yes, could you provide us information on how the custom attributes are being added currently.
hi @ykethan ,
thanks for the quick response .
i just tried doing amplify push
and did not see any changes on cli-inputs.json
but see changes backend-config.json
the parameters
attribute is fully removed.
also posting a screenshot of the output if that is helpful
@charith-eLovu the error currently suggests this occurring on the Auth attributes/schema changes.
does the auth resource contain any custom attributes? if yes, could you provide us information on how the custom attributes are being added currently.
could you provide us the a minimal reproduction steps on the failure caused on the custom resource?
could you also try running amplify update auth
, reselecting similar options and running push?
Hi @ykethan , we found the issue, it was due to an custom attribute that we added . added it now with amplify and everything seems to work fine . Thank you very much for the help that you have provided .
thank you for the confirmation. Closing the issue.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Before opening, please confirm:
JavaScript Framework
React, React Native
Amplify APIs
Authentication, Analytics, Push Notifications
Amplify Version
v5
Amplify Categories
auth, function, notifications
Backend
Amplify CLI
Environment information
Describe the bug
i have created a custom CDK to create a step function . initially it had some problems so i did
amplify remove custom
and re-created the stack with same name . now when i try to push my i can only see 'Update' operation for my custom stack and all other's as No change . but i get the following errorwhat i also observe is in my backend-config.json i see
parameters
property with all its details being removed.Expected behavior
should create the custom stack on aws
Reproduction steps
Code Snippet
Log output
aws-exports.js
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response