Describe the bug
Version: 0.1.36
To Reproduce
amplify api update
amplify api push
Expected behavior
Screenshots
Log:
Hughs-Air-2:Common hugh$ amplify push
| Category | Resource name | Operation | Provider plugin |
| -------- | ------------- | --------- | ----------------- |
| Api | Write | Update | awscloudformation |
| Auth | UploadService | No Change | awscloudformation |
| Api | Read | No Change | awscloudformation |
? Are you sure you want to continue? Yes
⠧ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS ploadervice-20181127191856 AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:25 GMT+0000 (GMT) User Initiated
UPDATE_IN_PROGRESS authUploadService AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:29 GMT+0000 (GMT)
UPDATE_IN_PROGRESS apiWrite AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:29 GMT+0000 (GMT)
UPDATE_FAILED authUploadService AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:29 GMT+0000 (GMT) Parameters: [authRoleArn, autoVerifiedAttributes, allowUnauthenticatedIdentities, smsVerificationMessage, userpoolClientReadAttributes, mfaTypes, emailVerificationSubject, useDefault, openIdLambdaIAMPolicy, userpoolClientGenerateSecret, mfaConfiguration, userpoolClientLogPolicy, openIdRolePolicy, identityPoolName, openIdLogPolicy, thirdPartyAuth, authSelections, smsAuthenticationMessage, roleExternalId, mfaLambdaLogPolicy, passwordPolicyMinLength, userPoolName, openIdLambdaRoleName, policyName, userpoolClientName, userpoolClientLambdaPolicy, resourceName, mfaLambdaIAMPolicy, mfaPassRolePolicy, emailVerificationMessage, userpoolClientRefreshTokenValidity, userpoolClientSetAttributes, unAuthRoleName, authRoleName, requiredAttributes, roleName, passwordPolicyCharacters, lambdaLogPolicy, unAuthRoleArn, userpoolClientLambdaRole, defaultPasswordPolicy, mfaLambdaRole] must have values
UPDATE_IN_PROGRESS apiRead AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:29 GMT+0000 (GMT)
UPDATE_FAILED apiWrite AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:30 GMT+0000 (GMT) Resource update cancelled
⠼ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS ploadervice-20181127191856-apiWrite-FK15AWZWA5TA AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:30 GMT+0000 (GMT) User Initiated
UPDATE_IN_PROGRESS ploadervice-20181127191856-apiRead-7P740P5QX900 AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:30 GMT+0000 (GMT) User Initiated
UPDATE_ROLLBACK_IN_PROGRESS ploadervice-20181127191856-apiWrite-FK15AWZWA5TA AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:30 GMT+0000 (GMT) Initiated by parent stack
UPDATE_ROLLBACK_IN_PROGRESS ploadervice-20181127191856-apiRead-7P740P5QX900 AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:31 GMT+0000 (GMT) Initiated by parent stack
⠋ Updating resources in the cloud. This may take a few minutes...
UPDATE_FAILED apiRead AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:41 GMT+0000 (GMT) Resource update cancelled
UPDATE_ROLLBACK_IN_PROGRESS ploadervice-20181127191856 AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:42 GMT+0000 (GMT) The following resource(s) failed to update: [apiRead, authUploadService, apiWrite].
UPDATE_COMPLETE authUploadService AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:46 GMT+0000 (GMT)
UPDATE_IN_PROGRESS apiRead AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:46 GMT+0000 (GMT)
⠏ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS apiWrite AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:46 GMT+0000 (GMT)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS ploadervice-20181127191856-apiRead-7P740P5QX900 AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:49 GMT+0000 (GMT)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS ploadervice-20181127191856-apiWrite-FK15AWZWA5TA AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:50 GMT+0000 (GMT)
⠋ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE apiRead AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:57 GMT+0000 (GMT)
UPDATE_COMPLETE apiWrite AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:57 GMT+0000 (GMT)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS ploadervice-20181127191856 AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:58 GMT+0000 (GMT)
UPDATE_IN_PROGRESS apiRead AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:59 GMT+0000 (GMT)
UPDATE_IN_PROGRESS apiWrite AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:59 GMT+0000 (GMT)
UPDATE_IN_PROGRESS authUploadService AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:59 GMT+0000 (GMT)
UPDATE_COMPLETE authUploadService AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:59 GMT+0000 (GMT)
UPDATE_ROLLBACK_COMPLETE ploadervice-20181127191856-apiRead-7P740P5QX900 AWS::CloudFormation::Stack Sat Dec 15 2018 12:30:00 GMT+0000 (GMT)
UPDATE_ROLLBACK_COMPLETE ploadervice-20181127191856-apiWrite-FK15AWZWA5TA AWS::CloudFormation::Stack Sat Dec 15 2018 12:30:00 GMT+0000 (GMT)
⠹ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE apiRead AWS::CloudFormation::Stack Sat Dec 15 2018 12:30:10 GMT+0000 (GMT)
UPDATE_COMPLETE apiWrite AWS::CloudFormation::Stack Sat Dec 15 2018 12:30:10 GMT+0000 (GMT)
UPDATE_ROLLBACK_COMPLETE ploadervice-20181127191856 AWS::CloudFormation::Stack Sat Dec 15 2018 12:30:10 GMT+0000 (GMT)
⠴ Updating resources in the cloud. This may take a few minutes...Error updating cloudformation stack
✖ An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete
It seems like parameters in ./amplify/backend/awscloudformation/nested-cloudformation-stack.yml
are being deleted:
Im experiencing the same issue. I have tried to update individually but gives same error.
Updating resources in the cloud. This may take a few minutes...Error updating cloudformation stack
An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete
| Category | Resource name | Operation | Provider plugin |
| -------- | --------------- | --------- | ----------------- |
| Auth | cognito9183445a | Update | awscloudformation |
| Function | rentals | Update | awscloudformation |
| Api | floridatrailmix | No Change | awscloudformation |
| Api | beginrental | No Change | awscloudformation |
@btackney @hughbe Can you check your amplify/.config/project-config.json file and see if the project path is correct? I've faced this issue in the past and its due to some mismatch in the project path with the actual project path.
@kaustavghosh06 all paths in my amplify/.config/project-config.json are correct.
@btackney Can you paste your cloudformation stack trace? Are you having the same error as this ->
UPDATE_FAILED authUploadService AWS::CloudFormation::Stack Sat Dec 15 2018 12:29:29 GMT+0000 (GMT) Parameters: [authRoleArn, autoVerifiedAttributes, allowUnauthenticatedIdentities, smsVerificationMessage, userpoolClientReadAttributes, mfaTypes, emailVerificationSubject, useDefault, openIdLambdaIAMPolicy, userpoolClientGenerateSecret, mfaConfiguration, userpoolClientLogPolicy, openIdRolePolicy, identityPoolName, openIdLogPolicy, thirdPartyAuth, authSelections, smsAuthenticationMessage, roleExternalId, mfaLambdaLogPolicy, passwordPolicyMinLength, userPoolName, openIdLambdaRoleName, policyName, userpoolClientName, userpoolClientLambdaPolicy, resourceName, mfaLambdaIAMPolicy, mfaPassRolePolicy, emailVerificationMessage, userpoolClientRefreshTokenValidity, userpoolClientSetAttributes, unAuthRoleName, authRoleName, requiredAttributes, roleName, passwordPolicyCharacters, lambdaLogPolicy, unAuthRoleArn, userpoolClientLambdaRole, defaultPasswordPolicy, mfaLambdaRole] must have values
?
\ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS loridarailix-20181209225500 AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:26 GMT-0500 (Eastern Standard Time) User Initiated
UPDATE_IN_PROGRESS functionrentals AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:30 GMT-0500 (Eastern Standard Time)
UPDATE_IN_PROGRESS apifloridatrailmix AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:31 GMT-0500 (Eastern Standard Time)
UPDATE_IN_PROGRESS authcognito9183445a AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:31 GMT-0500 (Eastern Standard Time)
UPDATE_FAILED apifloridatrailmix AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:31 GMT-0500 (Eastern Standard Time) Parameters: [ResolverBucket, ResolverRootKey, DeploymentTimestamp, schemaG
raphql] must have values
/ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS loridarailix-20181209225500-functionrentals-GXJQSBUEAIUV AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:31 GMT-0500 (Eastern Standard Time) User Initiated
UPDATE_IN_PROGRESS loridarailix-20181209225500-authcognito9183445a-1MGBBD72IA6F8 AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:31 GMT-0500 (Eastern Standard Time) User Initiated
UPDATE_ROLLBACK_IN_PROGRESS loridarailix-20181209225500-functionrentals-GXJQSBUEAIUV AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:32 GMT-0500 (Eastern Standard Time) Initiated by parent stack
UPDATE_ROLLBACK_IN_PROGRESS loridarailix-20181209225500-authcognito9183445a-1MGBBD72IA6F8 AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:32 GMT-0500 (Eastern Standard Time) Initiated by parent stack
/ Updating resources in the cloud. This may take a few minutes...
UPDATE_FAILED functionrentals AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:42 GMT-0500 (Eastern Standard Time) Resource update cancelled
UPDATE_FAILED authcognito9183445a AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:42 GMT-0500 (Eastern Standard Time) Resource update cancelled
UPDATE_ROLLBACK_IN_PROGRESS loridarailix-20181209225500 AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:43 GMT-0500 (Eastern Standard Time) The following resource(s) failed to update: [functionrentals, api
floridatrailmix, authcognito9183445a].
- Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS functionrentals AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:50 GMT-0500 (Eastern Standard Time)
UPDATE_COMPLETE apifloridatrailmix AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:50 GMT-0500 (Eastern Standard Time)
UPDATE_IN_PROGRESS authcognito9183445a AWS::CloudFormation::Stack Wed Dec 26 2018 15:57:50 GMT-0500 (Eastern Standard Time)
\ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS loridarailix-20181209225500-functionrentals-GXJQSBUEAIUV AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:21 GMT-0500 (Eastern Standard Time)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS loridarailix-20181209225500-authcognito9183445a-1MGBBD72IA6F8 AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:21 GMT-0500 (Eastern Standard Time)
UPDATE_COMPLETE authcognito9183445a AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:25 GMT-0500 (Eastern Standard Time)
UPDATE_COMPLETE functionrentals AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:25 GMT-0500 (Eastern Standard Time)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS loridarailix-20181209225500 AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:26 GMT-0500 (Eastern Standard Time)
| Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS apifloridatrailmix AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:27 GMT-0500 (Eastern Standard Time)
UPDATE_IN_PROGRESS functionrentals AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:27 GMT-0500 (Eastern Standard Time)
UPDATE_IN_PROGRESS authcognito9183445a AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:28 GMT-0500 (Eastern Standard Time)
UPDATE_COMPLETE apifloridatrailmix AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:28 GMT-0500 (Eastern Standard Time)
UPDATE_ROLLBACK_COMPLETE loridarailix-20181209225500-functionrentals-GXJQSBUEAIUV AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:28 GMT-0500 (Eastern Standard Time)
UPDATE_ROLLBACK_COMPLETE loridarailix-20181209225500-authcognito9183445a-1MGBBD72IA6F8 AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:29 GMT-0500 (Eastern Standard Time)
/ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE functionrentals AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:38 GMT-0500 (Eastern Standard Time)
UPDATE_COMPLETE authcognito9183445a AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:38 GMT-0500 (Eastern Standard Time)
UPDATE_ROLLBACK_COMPLETE loridarailix-20181209225500 AWS::CloudFormation::Stack Wed Dec 26 2018 15:58:39 GMT-0500 (Eastern Standard Time)
- Updating resources in the cloud. This may take a few minutes...Error updating cloudformation stack
× An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete
Just ran into this issue after attempting to update an API after I had moved my project directory, I think it has something to do with .config/local-env-info.json
running amplify configure project
fixed the "must have values" / "Resource is not in the state stackUpdateComplete" error for me
I have a similar issue. Except I get two different locations for the error:
UPDATE_IN_PROGRESS Users AWS::CloudFormation::Stack Fri Feb 15 2019 16:34:37 GMT-0800 (Pacific Standard Time)
⠧ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_IN_PROGRESS bento4me-20190212090627-apibento4me-4MLAK1Q3PUOM AWS::CloudFormation::Stack Fri Feb 15 2019 16:35:01 GMT-0800 (Pacific Standard Time) The following resource(s) failed to update: [Users].
UPDATE_FAILED Users AWS::CloudFormation::Stack Fri Feb 15 2019 16:35:00 GMT-0800 (Pacific Standard Time) Embedded stack arn:aws:cloudformation:us-east-1:044118685730:stack/bento4me-20190212090627-apibento4me-4MLAK1Q3PUOM-Users-1UH4OLYKINS0U/5aa48a00-3178-11e9-a4d0-0e94286004bc was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [DeleteUsersResolver, ListUsersResolver, GetUsersResolver].
⠙ Updating resources in the cloud. This may take a few minutes...
UPDATE_FAILED apibento4me AWS::CloudFormation::Stack Fri Feb 15 2019 16:35:12 GMT-0800 (Pacific Standard Time) Embedded stack arn:aws:cloudformation:us-east-1:044118685730:stack/bento4me-20190212090627-apibento4me-4MLAK1Q3PUOM/4e9cdb90-3178-11e9-8575-0a5651437e88 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [Users].
⠦ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_IN_PROGRESS bento4me-20190212090627 AWS::CloudFormation::Stack Fri Feb 15 2019 16:35:12 GMT-0800 (Pacific Standard Time) The following resource(s)failed to update: [apibento4me].
But in the end I get the same exact error of:
✖ An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete
This started happening once I added functionality in the schema to rename the queries and mutations for a @model. Ever since I did that, then even after setting the model to what it previously was it still gets the same failed updates and now I cannot update the API on the server at all...
Wow, I ran into this same problem. Turns out it was because I renamed my project directory. It would be much better if Amplify is more resilient to this!
Hey guys, we store the project configuration (including project path) in amplify/.config/local-env-info.json
file (which the CLI uses to parse your project structure), and if you change your directory name, you could either run amplify configure project
or change the projectpath manually in the file mentioned above.
Just ran into this issue after attempting to update an API after I had moved my project directory, I think it has something to do with
.config/local-env-info.json
Updating the local path solved my issue. Thank you @sankhagowit!
I have not changed my folder name or manually changed any configuration settings. I ran amplify configure project
just in case and I am still getting the must have values error. Anyone got any other possible solutions?
AWS::CloudFormation::Stack Tue Sep 10 2019 09:09:41 GMT-0400 (Eastern Daylight Time) Parameters: [userpoolClientLogPolicy, openIdRolePolicy, openIdLogPolicy, mfaLambdaLogPolicy, openIdLambdaRoleName, policyName, userpoolClientName, userpoolClientLambdaPolicy, mfaLambdaIAMPolicy, mfaPassRolePolicy, authRoleName, roleName, lambdaLogPolicy, mfaLambdaRole] must have values
@btackney @hughbe Can you check your amplify/.config/project-config.json file and see if the project path is correct? I've faced this issue in the past and its due to some mismatch in the project path with the actual project path.
Looked everywhere for a solution and this was the one - renamed my project for release and this was the only thing that didn't get picked up in the update
Most helpful comment
Just ran into this issue after attempting to update an API after I had moved my project directory, I think it has something to do with
.config/local-env-info.json
running
amplify configure project
fixed the "must have values" / "Resource is not in the state stackUpdateComplete" error for me