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

Unable to identify DynamoDB tables in the sandbox environment for each user

Open kita3222 opened this issue 1 year ago • 9 comments

Environment information

System:
  OS: macOS 14.5
  CPU: (8) arm64 Apple M2
  Memory: 173.20 MB / 24.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node
  Yarn: 1.22.19 - ~/.nvm/versions/node/v20.9.0/bin/yarn
  npm: 10.1.0 - ~/.nvm/versions/node/v20.9.0/bin/npm
  pnpm: 8.11.0 - ~/.nvm/versions/node/v20.9.0/bin/pnpm
NPM Packages:
  @aws-amplify/backend: 1.0.2
  @aws-amplify/backend-cli: 1.0.3
  aws-amplify: 6.3.4
  aws-cdk: 2.143.0
  aws-cdk-lib: 2.143.0
  typescript: 5.4.5
AWS environment variables:
  AWS_STS_REGIONAL_ENDPOINTS = regional
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
  AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables

Description

All table names created have a NONE suffix, so if you create a sandbox for each user in the same AWS account, they will not be identifiable.

A table named TODO-<appsync-api-id>-NONE would be created as follows. スクリーンショット 2024-05-28 17 50 38

Here is the schema I created.

const schema = a.schema({
  Todo: a
    .model({
      id: a.string(),
      content: a.string(),
    })
    .authorization((allow) => [allow.guest()]),
});

kita3222 avatar May 28 '24 10:05 kita3222

Hey👋 thanks for raising this! I'm going to transfer this over to our API repository for better assistance 🙂

ykethan avatar May 28 '24 12:05 ykethan

I agree, better naming would be great.

thomasoehri avatar May 28 '24 12:05 thomasoehri

Hi @kita3222, Thanks for raising this. We are marking this as a feature request for the team to evaluate further.

AnilMaktala avatar May 28 '24 17:05 AnilMaktala

@kita3222 - The DynamoDB tables should have tags based on your sandbox identifier. Will that solve your problem to differentiate the tables created by different users?

sundersc avatar Sep 05 '24 23:09 sundersc

Is there any update on this one so far?

anishniroula1 avatar Feb 02 '25 05:02 anishniroula1

Would appreciate it if there is an update on this from the team....

falconDevKing avatar Apr 09 '25 18:04 falconDevKing

@kita3222 - The DynamoDB tables should have tags based on your sandbox identifier. Will that solve your problem to differentiate the tables created by different users?

That would be enough for me.

BTW, any updates on this?

ErSoul avatar May 23 '25 18:05 ErSoul

this still hasn't been done! this is such an unusable product, what a shame!!!!! shame on the entire aws team for this!!!

trupti11 avatar May 25 '25 00:05 trupti11

Was thinking wtf am I doing. But it seems real, sadly

JamesLaviron avatar Aug 12 '25 19:08 JamesLaviron