Skip to content
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

I am deploying the lambda function from AWS CLI but after changing anything in input.py i am getting Deployment failed. #13279

Closed
piyush-upskillz opened this issue Sep 28, 2023 · 5 comments
Labels
pending-triage Issue is pending triage platform-push Issues related to `amplify push` question General question

Comments

@piyush-upskillz
Copy link

Amplify CLI Version

12.4.0

Question

After Changing anything in my python code or importing any library or running pipenv install flask the amplify push command responds with deployment failed with following error .
I am using Amplify Cli to create api and Lambda function.

Deploying root stack Upskillz [ ======---------------------------------- ] 1/7
amplify-u-staging-1045… AWS::CloudFormation::Stack UPDATE_ROLLBACK_COMPLETE_CLEA… Thu Sep 28 2023 21:02:26
functionuapi AWS::CloudFormation::Stack UPDATE_FAILED Thu Sep 28 2023 21:02:11
apiUp AWS::CloudFormation::Stack UPDATE_FAILED Thu Sep 28 2023 21:02:11
functionsyncConflictHandler41… AWS::CloudFormation::Stack UPDATE_COMPLETE Thu Sep 28 2023 21:02:14
authUp AWS::CloudFormation::Stack UPDATE_FAILED Thu Sep 28 2023 21:02:11
Deployed function syncConflictHandler41929f00 [ ======================================== ] 3/3
Deployed function uapi [ ======================================== ] 3/3

🛑 The following resources failed to deploy:
Resource Name: apiu (AWS::CloudFormation::Stack)
Event Type: update
Reason: Parameters: [authRoleName, unauthRoleName, S3DeploymentBucket, S3DeploymentRootKey] must have values
URL: https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/arn%3Aaws%3Acloudformation%3Aap-south-1%3A077278447346%3Astack%2Famplify-upskillz-staging-104548%2Fb6afed00-48b4-11ee-9600-06409bed3a88/events

Resource Name: authU (AWS::CloudFormation::Stack)
Event Type: update
Reason: Parameters: [usernameAttributes, authProviders, authRoleArn, autoVerifiedAttributes, allowUnauthenticatedIdentities, smsVerificationMessage, userpoolClientReadAttributes, breakCircularDependency, mfaTypes, emailVerificationSubject, sharedId, useDefault, userpoolClientGenerateSecret, mfaConfiguration, identityPoolName, userPoolGroupList, thirdPartyAuth, authSelections, adminQueries, resourceNameTruncated, userPoolGroups, smsAuthenticationMessage, passwordPolicyMinLength, userPoolName, userpoolClientWriteAttributes, dependsOn, useEnabledMfas, usernameCaseSensitive, resourceName, serviceName, emailVerificationMessage, userpoolClientRefreshTokenValidity, userpoolClientSetAttributes, unauthRoleArn, requiredAttributes, passwordPolicyCharacters, aliasAttributes, userpoolClientLambdaRole, defaultPasswordPolicy] must have values
URL: https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/arn%3Aaws%3Acloudformation%3Aap-south-1%3A077278447346%3Astack%2Famplify-upskillz-staging-104548%2Fb6afed00-48b4-11ee-9600-06409bed3a88/events

@piyush-upskillz piyush-upskillz added pending-triage Issue is pending triage question General question labels Sep 28, 2023
@ykethan
Copy link
Member

ykethan commented Oct 3, 2023

Hey @piyush-upskillz , thank you for reaching out. could you run amplify diagnose --send-report and provide us the Project Identifier output from your terminal. Additionally, do provide us any reproduction steps that would assist in recreating the issue.

@ykethan ykethan added pending-response Issue is pending response from the issue author platform-push Issues related to `amplify push` labels Oct 3, 2023
@piyush-upskillz
Copy link
Author

I deleted my upskillz api and now trying to update my data model but its showing
image
Project Identifier: 6950014613b38b4c968495a7a2164bef

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label Oct 5, 2023
@piyush-upskillz
Copy link
Author

@ykethan Thanks i was able to fix this by deleting the api and function locally and pushing it to amplify

@ykethan
Copy link
Member

ykethan commented Oct 5, 2023

Hey @piyush-upskillz, glad to hear that you were able to mitigate the issue. It appears the API resource was referring to function that does not exist.
Closing the issue, feel free in reaching out to us if you encounter any issues.

@ykethan ykethan closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2023
@github-actions
Copy link

github-actions bot commented Oct 5, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

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.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-triage Issue is pending triage platform-push Issues related to `amplify push` question General question
Projects
None yet
Development

No branches or pull requests

2 participants