I modified the function's cloudformation-template.json, but it still shows 'No Change' and does not apply the updates when I run amplify push. #14077
Labels
functions
Issues tied to the functions category
pending-response
Issue is pending response from the issue author
pending-triage
Issue is pending triage
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
20
Amplify CLI Version
9.2.1
What operating system are you using?
ubuntu
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes have been made.
Everything is managed through cloudformation-template.
Describe the bug
I modified the cloudformation-template.json in the function. When you apply
amplify push
locally, all the modified functions will be updated. However, if you merge into the GitHub branch and applyamplify push
in an action, only the function named ${projectName}AuthApi will be shown as updated, while the others will be marked as 'No Change'.Expected behavior
${projectName}AuthApi
${projectName}CreateAuthChallenge
${projectName}DefineAuthChallenge
${projectName}PreSignup
${projectName}VerifyAuthChallengeResponse
I believe that all the modified functions should be detected as having an update status and should be deployed via amplify push.
Reproduction steps
step1.
Modify the cloudformation-template of the function related to auth.
The modification area modifies the Runtime of Lambda.
step2.
amplify status
in the local environment.Verify that the function you changed is in the update state.
image : local terminal
step3.
Push to github branch.
amplify push
is performed within the github action.Only ${projectName}AuthApi is detected as a change.
image : github action
Project Identifier
Project Identifier: 95f93be5a1103ea933af50416baa53e8
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: