amplify-hosting icon indicating copy to clipboard operation
amplify-hosting copied to clipboard

Manage sandboxes in Console incorectly reports existing sandboxes

Open bogris opened this issue 7 months ago • 4 comments

Environment information

Last login: Sat Mar 29 17:22:06 on ttys012
/Users/sorin/.zshrc:127: bad pattern: compinit[
/Users/sorin/.zshrc:127: bad pattern: compinit[
➜  testing-project git:(main) ✗ npx ampx info

System:
  OS: macOS 15.2
  CPU: (8) arm64 Apple M1 Pro
  Memory: 119.36 MB / 16.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
  Yarn: 1.22.15 - ~/.npm-packages/bin/yarn
  npm: 9.8.1 - ~/.npm-packages/bin/npm
  pnpm: 6.11.0 - ~/.npm-packages/bin/pnpm
NPM Packages:
  @aws-amplify/ai-constructs: Not Found
  @aws-amplify/auth-construct: Not Found
  @aws-amplify/backend: 1.15.0
  @aws-amplify/backend-ai: Not Found
  @aws-amplify/backend-auth: Not Found
  @aws-amplify/backend-cli: 1.5.0
  @aws-amplify/backend-data: Not Found
  @aws-amplify/backend-deployer: Not Found
  @aws-amplify/backend-function: Not Found
  @aws-amplify/backend-output-schemas: Not Found
  @aws-amplify/backend-output-storage: Not Found
  @aws-amplify/backend-secret: Not Found
  @aws-amplify/backend-storage: Not Found
  @aws-amplify/cli-core: Not Found
  @aws-amplify/client-config: Not Found
  @aws-amplify/data-construct: Not Found
  @aws-amplify/data-schema: Not Found
  @aws-amplify/deployed-backend-client: Not Found
  @aws-amplify/form-generator: Not Found
  @aws-amplify/model-generator: Not Found
  @aws-amplify/platform-core: Not Found
  @aws-amplify/plugin-types: 1.8.1
  @aws-amplify/sandbox: Not Found
  @aws-amplify/schema-generator: Not Found
  aws-amplify: 6.14.1
  aws-cdk: 2.1006.0
  aws-cdk-lib: 2.186.0
  typescript: 5.8.2
No AWS environment variables
No CDK environment variables
npm notice
npm notice New major version of npm available! 9.8.1 -> 11.2.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v11.2.0>
npm notice Run `npm install -g [email protected]` to update!
npm notice
npm notice
npm notice New major version of npm available! 9.8.1 -> 11.2.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.2.0
npm notice Run npm install -g [email protected] to update!
npm notice
➜  testing-project git:(main) ✗

Describe the bug

In my current scenario I have:

  • 2 amplify project in the same account and region
  • from my pc (same git userName) I created one sandbox for each

Sandboxes are created correctly base on the package.json name field.

Navigating into the console under "manage sandboxes", each app sees both sandboxes.

Looking at the cloudformation tags for the sandbox stacks, i see only 2 tags:

Key | Value
amplify:deployment-type | sandbox
created-by | amplify

I assume the Console is looking for amplify:deployment-type | sandbox

I think we should add the other identifiers from the cli, as they are available on CF stack synth.

I am refering to this:


  Amplify Sandbox

  Identifier:   sorin
  Stack:        amplify-xoxotestingproject-sorin-sandbox-6480a42041
  Region:       eu-west-1

Reproduction steps

create 2 amplify projects in the same account / region

create a sandbox for each account

navigate into the Amplify service in the console and click "Manage sandboxes"

bogris avatar Mar 29 '25 15:03 bogris