aws-amplify / aws-amplify/amplify-cli
Amplify Publish Fails with uninformative error
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### How did you install the Amplify CLI?
npm
### If applicable, what version of Node.js are you using?
16.15.0
### Amplify CLI Version
10.8.1
### What operating system are you using?
wsl2 on Windows
### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
All changes were made through the CLI.
### Describe the bug
When I perform publish for the first time on my amplify application it completes the entire publishing process and even says it does so successfully, but it doesn't do it successfully.
The error that appears is: ⠇ Deploying build artifacts to the Amplify Console..Job failed.{"jobArn":"arn:aws:amplify:ap-southeast-2:121647937745:apps/d382eiebk7ozg/branches/dev/jobs/0000000005","jobId":"5","commitId":null,"commitMessage":"Deployment failed","commitTime":null,"startTime":"2023-03-23T11:16:53.429Z","status":"FAILED","endTime":null,"jobType":null}
### Expected behavior
My amplify application is published
### Reproduction steps
1. Run amplify publish locally.
### Project Identifier
Project Identifier: b49b46a13c132ba3c24b58950f212eda
### Log output
```
# Put your logs below this line
2023-03-23T10:32:15.684Z|info : amplify publish core
2023-03-23T10:32:15.739Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2023-03-23T10:32:18.192Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["EDhance Amplify"])
2023-03-23T10:32:18.193Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"ap-southeast-2"}])
2023-03-23T10:32:18.193Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["EDhance Amplify"])
2023-03-23T10:32:18.202Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["EDhance Amplify"])
2023-03-23T10:32:18.202Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"ap-southeast-2"}])
2023-03-23T10:32:18.203Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["EDhance Amplify"])
2023-03-23T10:32:18.209Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2023-03-23T10:32:18.209Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]peach-[***]ev-[***]430-[***]ment"}])
2023-03-23T10:32:19.176Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]peach-[***]ev-[***]430"}])
2023-03-23T10:32:19.178Z|info : amplify-provider-awscloudformation.aws-cfn.updateamplifyMetaFileWithStackOutputs.cfn.listStackResources([{"StackName":"[***]ify-[***]peach-[***]ev-[***]430"}])
2023-03-23T10:32:19.704Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]ify-[***]peach-[***]ev-[***]430"}])
2023-03-23T10:32:20.237Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:ap-[***]east-[***]45:stack/[***]ify-[***]peach-[***]ev-[***]430-[***]ch99f4eb0f-[***]199RYB/[***]e920-[***]0b-[***]ed-[***]b2-[***]393ea"}])
2023-03-23T10:32:20.239Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:ap-[***]east-[***]45:stack/[***]ify-[***]peach-[***]ev-[***]430-[***]fyhosting-[***]ROMEE/[***]d170-[***]0b-[***]ed-[***]40-[***]3d720"}])
2023-03-23T10:32:21.510Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]peach-[***]ev-[***]430-[***]ment"}])
2023-03-23T10:33:01.661Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["EDhance Amplify"])
2023-03-23T10:33:01.663Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"ap-southeast-2"}])
2023-03-23T10:33:01.663Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["EDhance Amplify"])
2023-03-23T10:44:10.875Z|info : amplify configure core project
2023-03-23T10:44:10.934Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2023-03-23T10:47:09.191Z|info : amplify configure core project
2023-03-23T10:47:09.252Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2023-03-23T10:47:32.897Z|info : amplify configure core project
2023-03-23T10:47:32.955Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2023-03-23T10:49:08.297Z|info : amplify configure core project
2023-03-23T10:49:08.354Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2023-03-23T10:53:25.455Z|info : amplify push core
2023-03-23T10:53:25.514Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2023-03-23T10:53:26.722Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["EDhance Amplify"])
2023-03-23T10:53:26.723Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"ap-southeast-2"}])
2023-03-23T10:53:26.723Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["EDhance Amplify"])
2023-03-23T10:53:26.743Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["EDhance Amplify"])
2023-03-23T10:53:26.744Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"ap-southeast-2"}])
2023-03-23T10:53:26.744Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["EDhance Amplify"])
2023-03-23T10:53:26.749Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2023-03-23T10:53:26.750Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]peach-[***]ev-[***]430-[***]ment"}])
2023-03-23T10:53:27.252Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]peach-[***]ev-[***]430"}])
2023-03-23T10:53:27.253Z|info : amplify-provider-awscloudformation.aws-cfn.updateamplifyMetaFileWithStackOutputs.cfn.listStackResources([{"StackName":"[***]ify-[***]peach-[***]ev-[***]430"}])
2023-03-23T10:53:27.596Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]ify-[***]peach-[***]ev-[***]430"}])
2023-03-23T10:53:27.944Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:ap-[***]east-[***]45:stack/[***]ify-[***]peach-[***]ev-[***]430-[***]ch99f4eb0f-[***]199RYB/[***]e920-[***]0b-[***]ed-[***]b2-[***]393ea"}])
2023-03-23T10:53:27.947Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:ap-[***]east-[***]45:stack/[***]ify-[***]peach-[***]ev-[***]430-[***]fyhosting-[***]ROMEE/[***]d170-[***]0b-[***]ed-[***]40-[***]3d720"}])
2023-03-23T10:53:28.204Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]peach-[***]ev-[***]430-[***]ment"}])
2023-03-23T10:53:28.637Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["EDhance Amplify"])
2023-03-23T10:53:28.638Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"ap-southeast-2"}])
2023-03-23T10:53:28.638Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["EDhance Amplify"])
2023-03-23T10:53:34.991Z|info : amplify publish core
2023-03-23T10:53:35.050Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2023-03-23T10:53:36.122Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["EDhance Amplify"])
2023-03-23T10:53:36.123Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"ap-southeast-2"}])
2023-03-23T10:53:36.123Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["EDhance Amplify"])
2023-03-23T10:53:36.132Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["EDhance Amplify"])
2023-03-23T10:53:36.132Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"ap-southeast-2"}])
2023-03-23T10:53:36.132Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["EDhance Amplify"])
2023-03-23T10:53:36.141Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2023-03-23T10:53:36.142Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]peach-[***]ev-[***]430-[***]ment"}])
2023-03-23T10:53:36.466Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]peach-[***]ev-[***]430"}])
2023-03-23T10:53:36.467Z|info : amplify-provider-awscloudformation.aws-cfn.updateamplifyMetaFileWithStackOutputs.cfn.listStackResources([{"StackName":"[***]ify-[***]peach-[***]ev-[***]430"}])
2023-03-23T10:53:36.737Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]ify-[***]peach-[***]ev-[***]430"}])
2023-03-23T10:53:37.123Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:ap-[***]east-[***]45:stack/[***]ify-[***]peach-[***]ev-[***]430-[***]ch99f4eb0f-[***]199RYB/[***]e920-[***]0b-[***]ed-[***]b2-[***]393ea"}])
2023-03-23T10:53:37.126Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:ap-[***]east-[***]45:stack/[***]ify-[***]peach-[***]ev-[***]430-[***]fyhosting-[***]ROMEE/[***]d170-[***]0b-[***]ed-[***]40-[***]3d720"}])
2023-03-23T10:53:37.378Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]peach-[***]ev-[***]430-[***]ment"}])
2023-03-23T10:54:17.183Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["EDhance Amplify"])
2023-03-23T10:54:17.189Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"ap-southeast-2"}])
2023-03-23T10:54:17.190Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["EDhance Amplify"])
2023-03-23T10:56:58.592Z|info : amplify publish core
2023-03-23T10:56:58.654Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2023-03-23T10:57:00.220Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["EDhance Amplify"])
2023-03-23T10:57:00.221Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"ap-southeast-2"}])
2023-03-23T10:57:00.221Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["EDhance Amplify"])
2023-03-23T10:57:00.230Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["EDhance Amplify"])
2023-03-23T10:57:00.230Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"ap-southeast-2"}])
2023-03-23T10:57:00.230Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["EDhance Amplify"])
2023-03-23T10:57:00.235Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2023-03-23T10:57:00.241Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]peach-[***]ev-[***]430-[***]ment"}])
2023-03-23T10:57:00.591Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]peach-[***]ev-[***]430"}])
2023-03-23T10:57:00.593Z|info : amplify-provider-awscloudformation.aws-cfn.updateamplifyMetaFileWithStackOutputs.cfn.listStackResources([{"StackName":"[***]ify-[***]peach-[***]ev-[***]430"}])
2023-03-23T10:57:00.944Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]ify-[***]peach-[***]ev-[***]430"}])
2023-03-23T10:57:01.335Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:ap-[***]east-[***]45:stack/[***]ify-[***]peach-[***]ev-[***]430-[***]ch99f4eb0f-[***]199RYB/[***]e920-[***]0b-[***]ed-[***]b2-[***]393ea"}])
2023-03-23T10:57:01.338Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:ap-[***]east-[***]45:stack/[***]ify-[***]peach-[***]ev-[***]430-[***]fyhosting-[***]ROMEE/[***]d170-[***]0b-[***]ed-[***]40-[***]3d720"}])
2023-03-23T10:57:01.636Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]peach-[***]ev-[***]430-[***]ment"}])
2023-03-23T11:01:03.869Z|info : amplify publish core
2023-03-23T11:01:03.929Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2023-03-23T11:02:00.450Z|info : amplify version core
2023-03-23T11:02:40.854Z|info : amplify diagnose core {"send-report":true,"yes":false}
2023-03-23T11:02:40.912Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
```
### Additional information
_No response_
### Before submitting, please confirm:
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.
Contributor guide
Research direction
Start with the amplify publish command and the logged Amplify Console job response, tracing where the FAILED job result is surfaced. Reproduce with the reported Node.js 16.15.0, CLI 10.8.1, and WSL2 setup; done means publish failures expose a useful error instead of only the job JSON.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, node.js, typescript
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100