amplify-category-api icon indicating copy to clipboard operation
amplify-category-api copied to clipboard

deploy fails. waiter timeout

Open blinkdaffer opened this issue 1 year ago • 5 comments

Environment information

System:
  OS: macOS 13.3.1
  CPU: (8) arm64 Apple M1 Pro
  Memory: 192.69 MB / 16.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 20.10.0 - /usr/local/bin/node
  Yarn: 1.22.19 - /opt/homebrew/bin/yarn
  npm: 10.2.4 - /opt/homebrew/bin/npm
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/backend: 0.13.0-beta.18
  @aws-amplify/backend-cli: 0.12.0-beta.20
  aws-amplify: 6.0.17
  aws-cdk: 2.133.0
  aws-cdk-lib: 2.133.0
  typescript: 5.3.3
AWS environment variables:
  AWS_SDK_LOAD_CONFIG = 1
  AWS_STS_REGIONAL_ENDPOINTS = regional
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
No CDK environment variables

Description

When attempting to deploy a build, I encounter a failure related to a nested stack within AWS CloudFormation. The error message received is:

"Embedded stack arn:aws:cloudformation:us-east-1:7XXX was not successfully created: The following resource(s) failed to create: [amplifyDataCompanyNestedStackCompanyNestedStackResource1A74F86D]."

image

 Iteration: a
      .model({
        companyId: a.id(),
        type: a.string(),

        company: a.belongsTo("Company", "companyId"),
      })
      .authorization([a.allow.multipleOwners()]),
  Company: a
      .model({
        companyName: a.string(),
        companyBackground: a.string(),
        iterations: a.hasMany("Iteration", "companyId"),
        members: a.string().array(),

      })
      .authorization([a.allow.multipleOwners().inField("members")]),
      
      ```

blinkdaffer avatar Apr 18 '24 13:04 blinkdaffer

Hi @blinkdaffer, was this a transient failure or is it happening consistently?

edwardfoyle avatar Apr 18 '24 15:04 edwardfoyle

transient failure i would say, managed to deploy once but failed on other tries, currently same build is deploying on windows just fine

windows machine info

System:
  OS: Windows 10 10.0.19045
  CPU: (4) x64 Intel(R) Core(TM) i5-7440HQ CPU @ 2.80GHz 
  Memory: 530.69 MB / 7.86 GB
Binaries:
  Node: 18.17.1 - C:\Program Files\nodejs\node.EXE       
  Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
  npm: 9.6.7 - C:\Program Files\nodejs\npm.CMD
  pnpm: 8.15.3 - ~\AppData\Local\pnpm\pnpm.EXE
NPM Packages:
  @aws-amplify/backend: 0.13.0-beta.18
  @aws-amplify/backend-cli: 0.12.0-beta.20
  aws-amplify: 6.0.17
  aws-cdk: 2.133.0
  aws-cdk-lib: 2.133.0
  typescript: 5.3.3
AWS environment variables:
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
  AWS_SDK_LOAD_CONFIG = 1
  AWS_STS_REGIONAL_ENDPOINTS = regional

mac info * doesnt deploy here

System:
OS: macOS 13.3.1
CPU: (8) arm64 Apple M1 Pro
Memory: 192.69 MB / 16.00 GB
Shell: /bin/zsh
Binaries:
Node: 20.10.0 - /usr/local/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 10.2.4 - /opt/homebrew/bin/npm
pnpm: undefined - undefined
NPM Packages:
@aws-amplify/backend: 0.13.0-beta.18
@aws-amplify/backend-cli: 0.12.0-beta.20
aws-amplify: 6.0.17
aws-cdk: 2.133.0
aws-cdk-lib: 2.133.0
typescript: 5.3.3
AWS environment variables:
AWS_SDK_LOAD_CONFIG = 1
AWS_STS_REGIONAL_ENDPOINTS = regional
AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
No CDK environment variables

blinkdaffer avatar Apr 18 '24 16:04 blinkdaffer

Thanks for the extra info! I'm going to transfer this to the api repo. They should be able to help more with this issue.

edwardfoyle avatar Apr 18 '24 23:04 edwardfoyle

any suggestions on this issue

blinkdaffer avatar Apr 19 '24 14:04 blinkdaffer

Hey @blinkdaffer, Thank you for raising this. This issue seems to be a duplicate of #2189 .

AnilMaktala avatar Apr 19 '24 18:04 AnilMaktala

We are closing this issue in favor of #2189. Please refer to that issue for future updates.

AnilMaktala avatar Jun 13 '24 19:06 AnilMaktala

This issue is now closed. 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.

github-actions[bot] avatar Jun 13 '24 19:06 github-actions[bot]