aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
449 stars 113 forks source link

Unable to deploy backend from app code even though it's unchanged from what amplify-cli generated #2667

Open jpgarbanzo opened 2 years ago

jpgarbanzo commented 2 years ago

Before opening, please confirm:

App Id

d2jybsfdb1au72

Region

us-east-1

Amplify Hosting feature

Backend builds

Describe the bug

I'm unable to deploy a backend as a part of an app build, even though I've made no changes to the code generated by the amplify-cli.

I'm getting this error:

 ## Checking for associated backend environment...
                                 ## Backend environment association found
2022-03-24T19:22:27.838Z [INFO]: Amplify AppID found: d2jybsfdb1au72. Amplify App name is: engineering-web
2022-03-24T19:22:27.886Z [INFO]: Backend environment staging found in Amplify Console app: engineering-web
2022-03-24T19:22:29.179Z [WARNING]: - Fetching updates to backend environment: staging from the cloud.
2022-03-24T19:22:30.351Z [WARNING]: - Building resource api/engineeringweb
2022-03-24T19:22:33.205Z [INFO]: GraphQL schema compiled successfully.
                                 Edit your schema at /codebuild/output/src142900561/src/engineering-web/amplify/backend/api/engineeringweb/schema.graphql or place .graphql files in a directory at /codebuild/output/src142900561/src/engineering-web/amplify/backend/api/engineeringweb/schema
2022-03-24T19:22:33.206Z [WARNING]: - Building resource auth/engineeringweb
2022-03-24T19:22:33.301Z [WARNING]: ✔ Successfully pulled backend environment staging from the cloud.
2022-03-24T19:22:33.321Z [INFO]: 
2022-03-24T19:22:34.742Z [INFO]: Note: It is recommended to run this command from the root of your app directory
2022-03-24T19:22:36.077Z [WARNING]: - Initializing your environment: staging
2022-03-24T19:22:37.329Z [WARNING]: - Building resource api/engineeringweb
2022-03-24T19:22:40.255Z [INFO]: GraphQL schema compiled successfully.
                                 Edit your schema at /codebuild/output/src142900561/src/engineering-web/amplify/backend/api/engineeringweb/schema.graphql or place .graphql files in a directory at /codebuild/output/src142900561/src/engineering-web/amplify/backend/api/engineeringweb/schema
2022-03-24T19:22:40.256Z [WARNING]: - Building resource auth/engineeringweb
2022-03-24T19:22:40.334Z [WARNING]: ✔ Initialized provider successfully.
2022-03-24T19:22:40.448Z [WARNING]: - Building resource api/engineeringweb
2022-03-24T19:22:42.786Z [INFO]: GraphQL schema compiled successfully.
                                 Edit your schema at /codebuild/output/src142900561/src/engineering-web/amplify/backend/api/engineeringweb/schema.graphql or place .graphql files in a directory at /codebuild/output/src142900561/src/engineering-web/amplify/backend/api/engineeringweb/schema
2022-03-24T19:22:42.787Z [WARNING]: - Building resource auth/engineeringweb
2022-03-24T19:22:42.845Z [WARNING]: - Uploading files...
2022-03-24T19:22:45.199Z [WARNING]: - Updating resources in the cloud. This may take a few minutes...
2022-03-24T19:22:50.985Z [INFO]: 
2022-03-24T19:22:50.986Z [INFO]: UPDATE_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241 AWS::CloudFormation::Stack Thu Mar 24 2022 19:22:45 GMT+0000 (Coordinated Universal Time) User Initiated
2022-03-24T19:22:55.963Z [INFO]: 
2022-03-24T19:22:55.965Z [INFO]: UPDATE_IN_PROGRESS authengineeringweb AWS::CloudFormation::Stack Thu Mar 24 2022 19:22:53 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:22:56.043Z [INFO]: 
2022-03-24T19:22:56.043Z [INFO]: UPDATE_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-authengineeringweb-VAE533J67CVT AWS::CloudFormation::Stack Thu Mar 24 2022 19:22:54 GMT+0000 (Coordinated Universal Time) User Initiated
2022-03-24T19:23:11.064Z [INFO]: 
2022-03-24T19:23:11.066Z [INFO]: UPDATE_IN_PROGRESS HostedUIProvidersCustomResourceInputs Custom::LambdaCallout Thu Mar 24 2022 19:23:06 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS HostedUIProvidersCustomResourceInputs Custom::LambdaCallout Thu Mar 24 2022 19:23:10 GMT+0000 (Coordinated Universal Time) Requested update required the provider to create a new physical resource
2022-03-24T19:23:11.263Z [INFO]: 
2022-03-24T19:23:11.264Z [INFO]: UPDATE_COMPLETE HostedUIProvidersCustomResourceInputs Custom::LambdaCallout Thu Mar 24 2022 19:23:10 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:23:26.060Z [INFO]: 
2022-03-24T19:23:26.062Z [INFO]: UPDATE_COMPLETE_CLEANUP_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-authengineeringweb-VAE533J67CVT AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:21 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:23:30.961Z [INFO]: 
2022-03-24T19:23:30.963Z [INFO]: UPDATE_COMPLETE    authengineeringweb AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:28 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS apiengineeringweb  AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:30 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:23:36.087Z [INFO]: 
2022-03-24T19:23:36.089Z [INFO]: UPDATE_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-S0MT1XF9S2R2 AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:31 GMT+0000 (Coordinated Universal Time) User Initiated
2022-03-24T19:23:46.073Z [INFO]: 
2022-03-24T19:23:46.076Z [INFO]: UPDATE_IN_PROGRESS FeedbackCategory                AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:41 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS FeedbackCategoryGrowthCategory  AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:41 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS Team                            AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:41 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS GrowthGroup                     AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:41 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS User                            AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:41 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS FeedbackCategoryFeedback        AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:41 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS UserTeam                        AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS GrowthCategory                  AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS GrowthCategoryGrowthGroup       AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS GraphQLAPIDefaultApiKey215A6DD7 AWS::AppSync::ApiKey       Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS UserUserTeam                    AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS TeamUserTeam                    AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS Feedback                        AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    GrowthGroup                     AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    FeedbackCategory                AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    User                            AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    Team                            AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    UserTeam                        AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:43 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    GrowthCategory                  AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:43 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    Feedback                        AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:43 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    GraphQLAPIDefaultApiKey215A6DD7 AWS::AppSync::ApiKey       Thu Mar 24 2022 19:23:44 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:23:46.288Z [INFO]: 
2022-03-24T19:23:46.288Z [INFO]: UPDATE_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-S0MT1XF9S2R-TeamUserTeam-Q67W49YGR0Q AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time) User Initiated
2022-03-24T19:23:46.369Z [INFO]: 
2022-03-24T19:23:46.369Z [INFO]: UPDATE_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-S0MT1XF9S2R-UserUserTeam-1A207YAM75XBB AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:43 GMT+0000 (Coordinated Universal Time) User Initiated
2022-03-24T19:23:46.496Z [INFO]: 
2022-03-24T19:23:46.497Z [INFO]: UPDATE_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringwe-GrowthCategoryGrowthGroup-1V6QS8E52LLKE AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:43 GMT+0000 (Coordinated Universal Time) User Initiated
2022-03-24T19:23:46.581Z [INFO]: 
2022-03-24T19:23:46.582Z [INFO]: UPDATE_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-FeedbackCategoryFeedback-FDE5O9Y4KO6N AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time) User Initiated
2022-03-24T19:23:46.666Z [INFO]: 
2022-03-24T19:23:46.666Z [INFO]: UPDATE_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineer-FeedbackCategoryGrowthCategory-1XZPTUSO4YD7G AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:42 GMT+0000 (Coordinated Universal Time) User Initiated
2022-03-24T19:23:56.268Z [INFO]: 
2022-03-24T19:23:56.269Z [INFO]: UPDATE_IN_PROGRESS          TeamUserTeamTable                                                                                  AWS::DynamoDB::Table       Thu Mar 24 2022 19:23:52 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_FAILED               TeamUserTeamTable                                                                                  AWS::DynamoDB::Table       Thu Mar 24 2022 19:23:52 GMT+0000 (Coordinated Universal Time) Cannot update GSI's properties other than Provisioned Throughput and Contributor Insights Specification. You can create a new GSI with a different name.
                                 UPDATE_ROLLBACK_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-S0MT1XF9S2R-TeamUserTeam-Q67W49YGR0Q AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:54 GMT+0000 (Coordinated Universal Time) The following resource(s) failed to update: [TeamUserTeamTable].
2022-03-24T19:23:56.406Z [INFO]: 
2022-03-24T19:23:56.407Z [INFO]: UPDATE_IN_PROGRESS          UserUserTeamTable                                                                                    AWS::DynamoDB::Table       Thu Mar 24 2022 19:23:52 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_FAILED               UserUserTeamTable                                                                                    AWS::DynamoDB::Table       Thu Mar 24 2022 19:23:52 GMT+0000 (Coordinated Universal Time) Cannot update GSI's properties other than Provisioned Throughput and Contributor Insights Specification. You can create a new GSI with a different name.
                                 UPDATE_ROLLBACK_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-S0MT1XF9S2R-UserUserTeam-1A207YAM75XBB AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:54 GMT+0000 (Coordinated Universal Time) The following resource(s) failed to update: [UserUserTeamTable].
2022-03-24T19:23:56.501Z [INFO]: 
2022-03-24T19:23:56.502Z [INFO]: UPDATE_IN_PROGRESS          GrowthCategoryGrowthGroupTable                                                                       AWS::DynamoDB::Table       Thu Mar 24 2022 19:23:53 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_FAILED               GrowthCategoryGrowthGroupTable                                                                       AWS::DynamoDB::Table       Thu Mar 24 2022 19:23:54 GMT+0000 (Coordinated Universal Time) Cannot update GSI's properties other than Provisioned Throughput and Contributor Insights Specification. You can create a new GSI with a different name.
                                 UPDATE_ROLLBACK_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringwe-GrowthCategoryGrowthGroup-1V6QS8E52LLKE AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:55 GMT+0000 (Coordinated Universal Time) The following resource(s) failed to update: [GrowthCategoryGrowthGroupTable].
2022-03-24T19:23:56.622Z [INFO]: 
2022-03-24T19:23:56.623Z [INFO]: UPDATE_IN_PROGRESS          FeedbackCategoryFeedbackTable                                                                       AWS::DynamoDB::Table       Thu Mar 24 2022 19:23:54 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_FAILED               FeedbackCategoryFeedbackTable                                                                       AWS::DynamoDB::Table       Thu Mar 24 2022 19:23:54 GMT+0000 (Coordinated Universal Time) Cannot update GSI's properties other than Provisioned Throughput and Contributor Insights Specification. You can create a new GSI with a different name.
                                 UPDATE_ROLLBACK_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-FeedbackCategoryFeedback-FDE5O9Y4KO6N AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:55 GMT+0000 (Coordinated Universal Time) The following resource(s) failed to update: [FeedbackCategoryFeedbackTable].
2022-03-24T19:23:56.659Z [INFO]: 
2022-03-24T19:23:56.660Z [INFO]: UPDATE_IN_PROGRESS          FeedbackCategoryGrowthCategoryTable                                                                  AWS::DynamoDB::Table       Thu Mar 24 2022 19:23:52 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_FAILED               FeedbackCategoryGrowthCategoryTable                                                                  AWS::DynamoDB::Table       Thu Mar 24 2022 19:23:53 GMT+0000 (Coordinated Universal Time) Cannot update GSI's properties other than Provisioned Throughput and Contributor Insights Specification. You can create a new GSI with a different name.
                                 UPDATE_ROLLBACK_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineer-FeedbackCategoryGrowthCategory-1XZPTUSO4YD7G AWS::CloudFormation::Stack Thu Mar 24 2022 19:23:54 GMT+0000 (Coordinated Universal Time) The following resource(s) failed to update: [FeedbackCategoryGrowthCategoryTable].
2022-03-24T19:24:06.106Z [INFO]: 
2022-03-24T19:24:06.108Z [INFO]: UPDATE_FAILED FeedbackCategoryGrowthCategory AWS::CloudFormation::Stack Thu Mar 24 2022 19:24:04 GMT+0000 (Coordinated Universal Time) Embedded stack arn:aws:cloudformation:us-east-1:339603476227:stack/amplify-amplifyce3fd06ad0a14-staging-204241-apiengineer-FeedbackCategoryGrowthCategory-1XZPTUSO4YD7G/23201950-aa29-11ec-bf49-0e35e523f99f was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [FeedbackCategoryGrowthCategoryTable].
                                 UPDATE_FAILED TeamUserTeam                   AWS::CloudFormation::Stack Thu Mar 24 2022 19:24:05 GMT+0000 (Coordinated Universal Time) Embedded stack arn:aws:cloudformation:us-east-1:339603476227:stack/amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-S0MT1XF9S2R-TeamUserTeam-Q67W49YGR0Q/22c09430-aa29-11ec-973a-0ea7f09e1d49 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [TeamUserTeamTable].
                                 UPDATE_FAILED GrowthCategoryGrowthGroup      AWS::CloudFormation::Stack Thu Mar 24 2022 19:24:05 GMT+0000 (Coordinated Universal Time) Embedded stack arn:aws:cloudformation:us-east-1:339603476227:stack/amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringwe-GrowthCategoryGrowthGroup-1V6QS8E52LLKE/238591e0-aa29-11ec-850c-12db369ea391 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [GrowthCategoryGrowthGroupTable].
                                 UPDATE_FAILED FeedbackCategoryFeedback       AWS::CloudFormation::Stack Thu Mar 24 2022 19:24:05 GMT+0000 (Coordinated Universal Time) Embedded stack arn:aws:cloudformation:us-east-1:339603476227:stack/amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-FeedbackCategoryFeedback-FDE5O9Y4KO6N/231bd390-aa29-11ec-abe7-0a22f5b12cc3 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [FeedbackCategoryFeedbackTable].
                                 UPDATE_FAILED UserUserTeam                   AWS::CloudFormation::Stack Thu Mar 24 2022 19:24:05 GMT+0000 (Coordinated Universal Time) Embedded stack arn:aws:cloudformation:us-east-1:339603476227:stack/amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-S0MT1XF9S2R-UserUserTeam-1A207YAM75XBB/233d3e40-aa29-11ec-965d-0e35e849f84b was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [UserUserTeamTable].
2022-03-24T19:24:06.795Z [INFO]: 
2022-03-24T19:24:06.795Z [INFO]: UPDATE_ROLLBACK_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-S0MT1XF9S2R2 AWS::CloudFormation::Stack Thu Mar 24 2022 19:24:06 GMT+0000 (Coordinated Universal Time) The following resource(s) failed to update: [UserUserTeam, GrowthCategoryGrowthGroup, FeedbackCategoryGrowthCategory, FeedbackCategoryFeedback, TeamUserTeam].
2022-03-24T19:24:21.008Z [INFO]: 
2022-03-24T19:24:21.009Z [INFO]: UPDATE_FAILED               apiengineeringweb                           AWS::CloudFormation::Stack Thu Mar 24 2022 19:24:18 GMT+0000 (Coordinated Universal Time) Embedded stack arn:aws:cloudformation:us-east-1:339603476227:stack/amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-S0MT1XF9S2R2/f0b59ad0-aa28-11ec-9f63-12dbfb879a91 was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [UserUserTeam, GrowthCategoryGrowthGroup, FeedbackCategoryGrowthCategory, FeedbackCategoryFeedback, TeamUserTeam].
                                 UPDATE_ROLLBACK_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241 AWS::CloudFormation::Stack Thu Mar 24 2022 19:24:19 GMT+0000 (Coordinated Universal Time) The following resource(s) failed to update: [apiengineeringweb].
2022-03-24T19:24:36.197Z [INFO]: 
2022-03-24T19:24:36.198Z [INFO]: UPDATE_IN_PROGRESS authengineeringweb AWS::CloudFormation::Stack Thu Mar 24 2022 19:24:35 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:24:36.556Z [INFO]: 
2022-03-24T19:24:36.557Z [INFO]: UPDATE_ROLLBACK_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-authengineeringweb-VAE533J67CVT AWS::CloudFormation::Stack Thu Mar 24 2022 19:24:35 GMT+0000 (Coordinated Universal Time) User Initiated
2022-03-24T19:24:46.101Z [INFO]: 
2022-03-24T19:24:46.102Z [INFO]: UPDATE_COMPLETE HostedUIProvidersCustomResourceInputs Custom::LambdaCallout Thu Mar 24 2022 19:24:42 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:24:51.101Z [INFO]: 
2022-03-24T19:24:51.102Z [INFO]: UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-authengineeringweb-VAE533J67CVT AWS::CloudFormation::Stack Thu Mar 24 2022 19:24:47 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:25:01.022Z [INFO]: 
2022-03-24T19:25:01.023Z [INFO]: UPDATE_COMPLETE    authengineeringweb AWS::CloudFormation::Stack Thu Mar 24 2022 19:24:58 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS apiengineeringweb  AWS::CloudFormation::Stack Thu Mar 24 2022 19:24:59 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:25:11.542Z [INFO]: 
2022-03-24T19:25:11.545Z [INFO]: UPDATE_IN_PROGRESS GraphQLAPIDefaultApiKey215A6DD7 AWS::AppSync::ApiKey       Thu Mar 24 2022 19:25:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS Feedback                        AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS UserUserTeam                    AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS GrowthCategory                  AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS TeamUserTeam                    AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS Team                            AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS FeedbackCategoryFeedback        AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS FeedbackCategoryGrowthCategory  AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS User                            AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS GrowthCategoryGrowthGroup       AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS GrowthGroup                     AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:08 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS FeedbackCategory                AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    Feedback                        AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_IN_PROGRESS UserTeam                        AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    Team                            AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    GrowthCategory                  AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    GrowthGroup                     AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    User                            AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    UserTeam                        AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    FeedbackCategory                AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:09 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE    GraphQLAPIDefaultApiKey215A6DD7 AWS::AppSync::ApiKey       Thu Mar 24 2022 19:25:10 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:25:41.431Z [INFO]: 
2022-03-24T19:25:41.432Z [INFO]: UPDATE_COMPLETE GrowthCategoryGrowthGroupTable AWS::DynamoDB::Table Thu Mar 24 2022 19:25:36 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:25:41.647Z [INFO]: 
2022-03-24T19:25:41.648Z [INFO]: UPDATE_COMPLETE                              FeedbackCategoryGrowthCategoryTable                                                                  AWS::DynamoDB::Table       Thu Mar 24 2022 19:25:36 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineer-FeedbackCategoryGrowthCategory-1XZPTUSO4YD7G AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:40 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:25:41.874Z [INFO]: 
2022-03-24T19:25:41.874Z [INFO]: UPDATE_COMPLETE                              UserUserTeamTable                                                                                    AWS::DynamoDB::Table       Thu Mar 24 2022 19:25:36 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-S0MT1XF9S2R-UserUserTeam-1A207YAM75XBB AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:40 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:25:41.889Z [INFO]: 
2022-03-24T19:25:41.890Z [INFO]: UPDATE_COMPLETE FeedbackCategoryFeedbackTable AWS::DynamoDB::Table Thu Mar 24 2022 19:25:37 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:25:41.944Z [INFO]: 
2022-03-24T19:25:41.944Z [INFO]: UPDATE_COMPLETE                              TeamUserTeamTable                                                                                  AWS::DynamoDB::Table       Thu Mar 24 2022 19:25:37 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-S0MT1XF9S2R-TeamUserTeam-Q67W49YGR0Q AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:41 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:25:46.199Z [INFO]: 
2022-03-24T19:25:46.201Z [INFO]: UPDATE_COMPLETE UserUserTeam                   AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:43 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE GrowthCategoryGrowthGroup      AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:43 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE FeedbackCategoryGrowthCategory AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:43 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE TeamUserTeam                   AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:43 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_COMPLETE FeedbackCategoryFeedback       AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:43 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:25:51.046Z [INFO]: 
2022-03-24T19:25:51.047Z [INFO]: UPDATE_COMPLETE                              apiengineeringweb                           AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:47 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS amplify-amplifyce3fd06ad0a14-staging-204241 AWS::CloudFormation::Stack Thu Mar 24 2022 19:25:48 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:26:16.065Z [INFO]: 
2022-03-24T19:26:16.067Z [INFO]: UPDATE_COMPLETE apiengineeringweb AWS::CloudFormation::Stack Thu Mar 24 2022 19:26:12 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:26:26.078Z [INFO]: 
2022-03-24T19:26:26.080Z [INFO]: UPDATE_COMPLETE          authengineeringweb                          AWS::CloudFormation::Stack Thu Mar 24 2022 19:26:24 GMT+0000 (Coordinated Universal Time)
                                 UPDATE_ROLLBACK_COMPLETE amplify-amplifyce3fd06ad0a14-staging-204241 AWS::CloudFormation::Stack Thu Mar 24 2022 19:26:24 GMT+0000 (Coordinated Universal Time)
2022-03-24T19:26:51.473Z [INFO]: Following resources failed
                                 Resource Name: TeamUserTeam-cthl6n5hyzcivkpuexn4nh7bze (AWS::DynamoDB::Table)
                                 Event Type: update
                                 Reason: Cannot update GSI's properties other than Provisioned Throughput and Contributor Insights Specification. You can create a new GSI with a different name.
                                 URL: https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/arn%3Aaws%3Acloudformation%3Aus-east-1%3A339603476227%3Astack%2Famplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-S0MT1XF9S2R-TeamUserTeam-Q67W49YGR0Q%2F22c09430-aa29-11ec-973a-0ea7f09e1d49/events
2022-03-24T19:26:51.474Z [INFO]: Resource Name: UserUserTeam-cthl6n5hyzcivkpuexn4nh7bze (AWS::DynamoDB::Table)
                                 Event Type: update
                                 Reason: Cannot update GSI's properties other than Provisioned Throughput and Contributor Insights Specification. You can create a new GSI with a different name.
                                 URL: https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/arn%3Aaws%3Acloudformation%3Aus-east-1%3A339603476227%3Astack%2Famplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-S0MT1XF9S2R-UserUserTeam-1A207YAM75XBB%2F233d3e40-aa29-11ec-965d-0e35e849f84b/events
                                 Resource Name: GrowthCategoryGrowthGroup-cthl6n5hyzcivkpuexn4nh7bze (AWS::DynamoDB::Table)
                                 Event Type: update
                                 Reason: Cannot update GSI's properties other than Provisioned Throughput and Contributor Insights Specification. You can create a new GSI with a different name.
                                 URL: https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/arn%3Aaws%3Acloudformation%3Aus-east-1%3A339603476227%3Astack%2Famplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringwe-GrowthCategoryGrowthGroup-1V6QS8E52LLKE%2F238591e0-aa29-11ec-850c-12db369ea391/events
                                 Resource Name: FeedbackCategoryFeedback-cthl6n5hyzcivkpuexn4nh7bze (AWS::DynamoDB::Table)
                                 Event Type: update
                                 Reason: Cannot update GSI's properties other than Provisioned Throughput and Contributor Insights Specification. You can create a new GSI with a different name.
                                 URL: https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/arn%3Aaws%3Acloudformation%3Aus-east-1%3A339603476227%3Astack%2Famplify-amplifyce3fd06ad0a14-staging-204241-apiengineeringweb-FeedbackCategoryFeedback-FDE5O9Y4KO6N%2F231bd390-aa29-11ec-abe7-0a22f5b12cc3/events
                                 Resource Name: FeedbackCategoryGrowthCategory-cthl6n5hyzcivkpuexn4nh7bze (AWS::DynamoDB::Table)
                                 Event Type: update
                                 Reason: Cannot update GSI's properties other than Provisioned Throughput and Contributor Insights Specification. You can create a new GSI with a different name.
                                 URL: https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/arn%3Aaws%3Acloudformation%3Aus-east-1%3A339603476227%3Astack%2Famplify-amplifyce3fd06ad0a14-staging-204241-apiengineer-FeedbackCategoryGrowthCategory-1XZPTUSO4YD7G%2F23201950-aa29-11ec-bf49-0e35e523f99f/events
2022-03-24T19:26:51.475Z [WARNING]: ✖ An error occurred when pushing the resources to the cloud
                                    ✖ There was an error initializing your environment.
2022-03-24T19:26:51.481Z [INFO]: ResourceNotReady: Resource is not in the state stackUpdateComplete
                                 at constructor.setError (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/resource_waiter.js:182:47)
                                 at Request.CHECK_ACCEPTORS (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/resource_waiter.js:44:12)
                                 at Request.callListeners (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
                                 at Request.emit (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
                                 at Request.emit (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:686:14)
                                 at Request.transition (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:22:10)
                                 at AcceptorStateMachine.runTo (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/state_machine.js:14:12)
                                 at /root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/state_machine.js:26:10
                                 at Request.<anonymous> (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:38:9)
                                 at Request.<anonymous> (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:688:12)
                                 at Request.callListeners (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
                                 at Request.emit (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
                                 at Request.emit (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:686:14)
                                 at Request.transition (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:22:10)
                                 at AcceptorStateMachine.runTo (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/state_machine.js:14:12)
                                 at /root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/state_machine.js:26:10
                                 at Request.<anonymous> (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:38:9)
                                 at Request.<anonymous> (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:688:12)
                                 at Request.callListeners (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
                                 at callNextListener (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:96:12)
                                 at IncomingMessage.onEnd (/root/.nvm/versions/node/v14.19.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/event_listeners.js:335:13)
                                 at IncomingMessage.emit (events.js:412:35)
                                 at IncomingMessage.emit (domain.js:475:12)
                                 at endReadableNT (internal/streams/readable.js:1334:12)
                                 at processTicksAndRejections (internal/process/task_queues.js:82:21) {
                                 code: 'ResourceNotReady',
                                 retryable: false,
                                 time: 2022-03-24T19:26:46.465Z,
                                 statusCode: 200,
                                 retryDelay: 30000
                                 }
2022-03-24T19:26:51.497Z [ERROR]: !!! Build failed
2022-03-24T19:26:51.497Z [ERROR]: !!! Non-Zero Exit Code detected
2022-03-24T19:26:51.498Z [INFO]: # Starting environment caching...
2022-03-24T19:26:51.498Z [INFO]: # Uploading environment cache artifact...
2022-03-24T19:26:51.584Z [INFO]: # Environment caching completed
Terminating logging...

So the build process won't continue and I'm not able to deploy the app's frontend as it fails in the backend step. However, deploying the backend alone works just fine.

I've found issues like #702 but in those scenarios there were local changes to the data model.

Expected behavior

Since deploying the backend from the Amplify Studio works fine, I'd expect the backend build to succeed from the "Hosting Environments" section and the app to be deployed successfully.

Reproduction steps

  1. Setup a new web-app, configure it with a repo and make sure it can be deployed successfully (here's the last working version)
  2. Generate a data model from Amplify Studio
  3. Pull the data model into the existing repo, using amplify pull --appId <id> --envName <name>
  4. Commit the changes to the original repo
  5. Go to the Amplify and set the continuos deploys to Continuous deploys set up with <name> backend
  6. Push code to the webapp repo and trigger the build

The result is the attached error log. I didn't make any modifications to the backend folder after pulling.

-- I've also tried removing the backend files by running amplify api remove the amplify pull --appId <id> --envName <name> but my local code remains unchanged after running both commands.

Build Settings

Here's the amplify.yml

version: 1
frontend:
  phases:
    preBuild:
      commands:
        - npm install
    build:
      commands:
        - npm run build
        - npm run generate
  artifacts:
    baseDirectory: dist
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*

The only change I've made was to add:

        - npm run build
        - npm run generate

I've seen examples with a backend portion inside the YML file, but since the build is being triggered, I'm leaving the file unchanged.

Additional information

Not directly related to the error log, but I've found out that sometimes there are side effects when deploying changes from the Amplify Studio. For example, every time I save a change to a model, I have to go to the auth section and fix the Web Client Id for Google Login, since four leading spaces are added to the credentials: image

I wonder if something similar might be happening with the Data section.

--

I'm new to AWS, so please let me know if I can provide any further details. Thanks in advance.

jpgarbanzo commented 2 years ago

It seems like the issue happens whenever I:

I tried adding just two tables and I get the same problem, am I missing something?

irl-dan commented 2 years ago

I'm seeing this same exact thing right now.

Davide-Michelotti commented 2 years ago

Same problem

ghost commented 2 years ago

Hi @jpgarbanzo @irl-dan @Davide-WO thank you for raising this issue, the team is investigating

jpgarbanzo commented 2 years ago

Thanks @hloriana and AWS Team.

I will be happy to collaborate to address the issue.

ghost commented 2 years ago

@irl-dan and @Davide-WO are you both adding models via Amplify Studio as well?

irl-dan commented 2 years ago

I actually updated the model in the source code and did an amplify push. No DataStore turned on for modeling it in Amplify Studio for me. But same error logs as above.

On Thu, Mar 31, 2022 at 3:48 PM, hloriana @.***> wrote:

@irl-dan https://github.com/irl-dan and @Davide-WO https://github.com/Davide-WO are you both adding models via Amplify Studio as well?

— Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-hosting/issues/2667#issuecomment-1085031793, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXILWH3GRPRN4ARFP5ELLG3VCX6R5ANCNFSM5RSFJWOA . You are receiving this because you were mentioned.Message ID: @.***>

Davide-Michelotti commented 2 years ago

@hloriana no my procedure was identical to that of @irl-dan.

But I add that we are a team, one of the guys could have something wrong during a push. In the last 2 days I have personally done the "amplify push" and it has not given me more problems.

jpgarbanzo commented 2 years ago

hi @hloriana any updates on this one? or a workaround?

ritika2291 commented 2 years ago

Im facing the same issue as well