I'm getting a 'CREATE FAILED' error when running amplify push. I updated my schema.graphql by adding more Object types and relations. The gql-compile was successful but the push then fails with the following output:
amplify --version
3.9.0
CREATE_FAILED Action AWS::CloudFormation::Stack Tue Oct 22 2019 14:39:20 GMT+0200 (SAST) S3 error: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
CREATE_FAILED Contact AWS::CloudFormation::Stack Tue Oct 22 2019 14:39:20 GMT+0200 (SAST) S3 error: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
UPDATE_FAILED Retailer AWS::CloudFormation::Stack Tue Oct 22 2019 14:39:20 GMT+0200 (SAST) Resource update cancelled
UPDATE_FAILED Voucher AWS::CloudFormation::Stack Tue Oct 22 2019 14:39:20 GMT+0200 (SAST) Resource update cancelled
@christodupreez What's the region you're trying to deploy to?
"Region": "eu-west-2"
@christodupreez Would it be possible for you to send me the entire Cloudformation error stack trace after the push?
`
Current Environment: dev
| Category | Resource name | Operation | Provider plugin |
| --------- | ---------------------------- | --------- | ----------------- |
| Api | myappnamereplacedapi | Update | awscloudformation |
| Auth | myappnamereplaced7945ad6e | No Change | awscloudformation |
| Analytics | myappnamereplaced | No Change | awscloudformation |
| Hosting | S3AndCloudFront | No Change | awscloudformation |
| Storage | myappnamereplaceds3624b020f | No Change | awscloudformation |
? Are you sure you want to continue? Yes
The following types do not have '@auth' enabled. Consider using @auth with @model
- Retailer
- Voucher
- Contact
- Action
Learn more about @auth here: https://aws-amplify.github.io/docs/cli-toolchain/graphql#auth
GraphQL schema compiled successfully.
Edit your schema at /home/christo/Documents/Development/My App Name Replaced/AWS/my-app-name-replaced/amplify/backend/api/myappnamereplacedapi/schema.graphql or place .graphql files in a directory at /home/christo/Documents/Development/My App Name Replaced/AWS/my-app-name-replaced/amplify/backend/api/myappnamereplacedapi/schema
? Do you want to update code for your updated GraphQL API No
⠏ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS my-app-name-replaced-dev-20190528150014 AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:12 GMT+0200 (SAST) User Initiated
UPDATE_IN_PROGRESS hostingS3AndCloudFront AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:15 GMT+0200 (SAST)
UPDATE_IN_PROGRESS storagemyappnamereplaceds3624b020f AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:15 GMT+0200 (SAST)
UPDATE_COMPLETE hostingS3AndCloudFront AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:15 GMT+0200 (SAST)
UPDATE_COMPLETE storagemyappnamereplaceds3624b020f AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:15 GMT+0200 (SAST)
UPDATE_IN_PROGRESS analyticsmyappnamereplaced AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:15 GMT+0200 (SAST)
UPDATE_IN_PROGRESS authmyappnamereplaced7945ad6e AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:16 GMT+0200 (SAST)
UPDATE_COMPLETE analyticsmyappnamereplaced AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:16 GMT+0200 (SAST)
UPDATE_COMPLETE authmyappnamereplaced7945ad6e AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:16 GMT+0200 (SAST)
UPDATE_IN_PROGRESS apimyappnamereplacedapi AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:18 GMT+0200 (SAST)
⠏ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS my-app-name-replaced-dev-20190528150014-apimyappnamereplacedapi-125K0CF868AAZ AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:18 GMT+0200 (SAST) User Initiated
⠹ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS GraphQLSchema AWS::AppSync::GraphQLSchema Thu Oct 24 2019 09:15:22 GMT+0200 (SAST)
⠼ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE GraphQLSchema AWS::AppSync::GraphQLSchema Thu Oct 24 2019 09:15:35 GMT+0200 (SAST)
⠧ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS Voucher AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:46 GMT+0200 (SAST)
CREATE_IN_PROGRESS Action AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:46 GMT+0200 (SAST)
UPDATE_IN_PROGRESS Retailer AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:46 GMT+0200 (SAST)
CREATE_IN_PROGRESS Contact AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:47 GMT+0200 (SAST)
CREATE_FAILED Action AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:47 GMT+0200 (SAST) S3 error: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
CREATE_FAILED Contact AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:47 GMT+0200 (SAST) S3 error: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
⠴ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS my-app-name-replaced-dev-20190528150014-apimyappnamereplacedapi-125K0CF868AA-Retailer-1OSCGJHOF8ONW AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:47 GMT+0200 (SAST) User Initiated
UPDATE_ROLLBACK_IN_PROGRESS my-app-name-replaced-dev-20190528150014-apimyappnamereplacedapi-125K0CF868AA-Retailer-1OSCGJHOF8ONW AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:48 GMT+0200 (SAST) Initiated by parent stack
⠦ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS my-app-name-replaced-dev-20190528150014-apimyappnamereplacedapi-125K0CF868AAZ-Voucher-56GILV3M8R7Q AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:46 GMT+0200 (SAST) User Initiated
UPDATE_ROLLBACK_IN_PROGRESS my-app-name-replaced-dev-20190528150014-apimyappnamereplacedapi-125K0CF868AAZ-Voucher-56GILV3M8R7Q AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:48 GMT+0200 (SAST) Initiated by parent stack
⠏ Updating resources in the cloud. This may take a few minutes...
UPDATE_FAILED Voucher AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:58 GMT+0200 (SAST) Resource update cancelled
UPDATE_FAILED Retailer AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:58 GMT+0200 (SAST) Resource update cancelled
UPDATE_ROLLBACK_IN_PROGRESS my-app-name-replaced-dev-20190528150014-apimyappnamereplacedapi-125K0CF868AAZ AWS::CloudFormation::Stack Thu Oct 24 2019 09:15:58 GMT+0200 (SAST) The following resource(s) failed to create: [Action, Contact]. The following resource(s) failed to update: [Retailer, Voucher].
⠴ Updating resources in the cloud. This may take a few minutes...
UPDATE_FAILED apimyappnamereplacedapi AWS::CloudFormation::Stack Thu Oct 24 2019 09:16:05 GMT+0200 (SAST) Embedded stack arn:aws:cloudformation:eu-west-2:854577177643:stack/my-app-name-replaced-dev-20190528150014-apimyappnamereplacedapi-125K0CF868AAZ/d5ebf790-848c-11e9-99df-0a1170ef5528 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [Action, Contact]. The following resource(s) failed to update: [Retailer, Voucher].
UPDATE_ROLLBACK_IN_PROGRESS my-app-name-replaced-dev-20190528150014 AWS::CloudFormation::Stack Thu Oct 24 2019 09:16:06 GMT+0200 (SAST) The following resource(s) failed to update: [apimyappnamereplacedapi].
⠙ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS analyticsmyappnamereplaced AWS::CloudFormation::Stack Thu Oct 24 2019 09:16:13 GMT+0200 (SAST)
UPDATE_IN_PROGRESS storagemyappnamereplaceds3624b020f AWS::CloudFormation::Stack Thu Oct 24 2019 09:16:13 GMT+0200 (SAST)
UPDATE_IN_PROGRESS hostingS3AndCloudFront AWS::CloudFormation::Stack Thu Oct 24 2019 09:16:13 GMT+0200 (SAST)
UPDATE_IN_PROGRESS authmyappnamereplaced7945ad6e AWS::CloudFormation::Stack Thu Oct 24 2019 09:16:13 GMT+0200 (SAST)
UPDATE_COMPLETE hostingS3AndCloudFront AWS::CloudFormation::Stack Thu Oct 24 2019 09:16:13 GMT+0200 (SAST)
UPDATE_COMPLETE analyticsmyappnamereplaced AWS::CloudFormation::Stack Thu Oct 24 2019 09:16:13 GMT+0200 (SAST)
UPDATE_COMPLETE storagemyappnamereplaceds3624b020f AWS::CloudFormation::Stack Thu Oct 24 2019 09:16:13 GMT+0200 (SAST)
UPDATE_COMPLETE authmyappnamereplaced7945ad6e AWS::CloudFormation::Stack Thu Oct 24 2019 09:16:14 GMT+0200 (SAST)
UPDATE_IN_PROGRESS apimyappnamereplacedapi AWS::CloudFormation::Stack Thu Oct 24 2019 09:16:14 GMT+0200 (SAST)
⠦ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS GraphQLSchema AWS::AppSync::GraphQLSchema Thu Oct 24 2019 09:16:43 GMT+0200 (SAST)
⠇ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE GraphQLSchema AWS::AppSync::GraphQLSchema Thu Oct 24 2019 09:16:57 GMT+0200 (SAST)
UPDATE_IN_PROGRESS Retailer AWS::CloudFormation::Stack Thu Oct 24 2019 09:16:58 GMT+0200 (SAST)
UPDATE_IN_PROGRESS Voucher AWS::CloudFormation::Stack Thu Oct 24 2019 09:16:58 GMT+0200 (SAST)
⠙ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS my-app-name-replaced-dev-20190528150014-apimyappnamereplacedapi-125K0CF868AAZ-Voucher-56GILV3M8R7Q AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:13 GMT+0200 (SAST)
⠹ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS my-app-name-replaced-dev-20190528150014-apimyappnamereplacedapi-125K0CF868AA-Retailer-1OSCGJHOF8ONW AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:14 GMT+0200 (SAST)
⠏ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE Voucher AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:19 GMT+0200 (SAST)
UPDATE_COMPLETE Retailer AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:20 GMT+0200 (SAST)
⠋ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS my-app-name-replaced-dev-20190528150014-apimyappnamereplacedapi-125K0CF868AAZ AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:21 GMT+0200 (SAST)
⠴ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE apimyappnamereplacedapi AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:32 GMT+0200 (SAST)
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS my-app-name-replaced-dev-20190528150014 AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:32 GMT+0200 (SAST)
⠴ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS Voucher AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:34 GMT+0200 (SAST)
UPDATE_IN_PROGRESS Retailer AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:34 GMT+0200 (SAST)
DELETE_COMPLETE Contact AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:34 GMT+0200 (SAST)
DELETE_COMPLETE Action AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:34 GMT+0200 (SAST)
⠧ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_COMPLETE my-app-name-replaced-dev-20190528150014-apimyappnamereplacedapi-125K0CF868AA-Retailer-1OSCGJHOF8ONW AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:35 GMT+0200 (SAST)
UPDATE_IN_PROGRESS storagemyappnamereplaceds3624b020f AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:33 GMT+0200 (SAST)
UPDATE_IN_PROGRESS apimyappnamereplacedapi AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:33 GMT+0200 (SAST)
UPDATE_IN_PROGRESS analyticsmyappnamereplaced AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:33 GMT+0200 (SAST)
UPDATE_IN_PROGRESS hostingS3AndCloudFront AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:33 GMT+0200 (SAST)
UPDATE_COMPLETE storagemyappnamereplaceds3624b020f AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:33 GMT+0200 (SAST)
UPDATE_COMPLETE hostingS3AndCloudFront AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:33 GMT+0200 (SAST)
UPDATE_COMPLETE analyticsmyappnamereplaced AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:33 GMT+0200 (SAST)
⠼ Updating resources in the cloud. This may take a few minutes...
UPDATE_ROLLBACK_COMPLETE my-app-name-replaced-dev-20190528150014-apimyappnamereplacedapi-125K0CF868AAZ-Voucher-56GILV3M8R7Q AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:35 GMT+0200 (SAST)
⠧ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE Voucher AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:45 GMT+0200 (SAST)
UPDATE_COMPLETE Retailer AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:45 GMT+0200 (SAST)
UPDATE_ROLLBACK_COMPLETE my-app-name-replaced-dev-20190528150014-apimyappnamereplacedapi-125K0CF868AAZ AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:45 GMT+0200 (SAST)
⠸ Updating resources in the cloud. This may take a few minutes...
UPDATE_COMPLETE apimyappnamereplacedapi AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:55 GMT+0200 (SAST)
UPDATE_IN_PROGRESS authmyappnamereplaced7945ad6e AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:55 GMT+0200 (SAST)
UPDATE_COMPLETE authmyappnamereplaced7945ad6e AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:55 GMT+0200 (SAST)
UPDATE_ROLLBACK_COMPLETE my-app-name-replaced-dev-20190528150014 AWS::CloudFormation::Stack Thu Oct 24 2019 09:17:56 GMT+0200 (SAST)
⠏ Updating resources in the cloud. This may take a few minutes...Error updating cloudformation stack
⠹ Updating resources in the cloud. This may take a few minutes...
Following resources failed
✖ An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete
An error occured during the push operation: Resource is not in the state stackUpdateComplete
`
I have solved the issue.
It was caused by moving the project to another folder and not updating the project's route or name in /amplify/.config/local-env-info.json
To solve it open /amplify/.config/local-env-info.json and check projectPath
Thank you for all your help.
Most helpful comment
I have solved the issue.
It was caused by moving the project to another folder and not updating the project's route or name in /amplify/.config/local-env-info.json
To solve it open /amplify/.config/local-env-info.json and check projectPath
Thank you for all your help.