Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npx ampx sandbox add auth #2068

Open
yotchoun opened this issue Sep 29, 2024 · 1 comment
Open

npx ampx sandbox add auth #2068

yotchoun opened this issue Sep 29, 2024 · 1 comment
Labels
backend-cli Issue is related to Amplify backend CLI pending-response Issue is pending response from author pending-triage Incoming issues that need categorization

Comments

@yotchoun
Copy link

Environment information

System:
  OS: macOS 13.7
  CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  Memory: 22.11 MB / 16.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 18.20.3 - ~/.nvm/versions/node/v18.20.3/bin/node
  Yarn: 1.22.22 - /usr/local/bin/yarn
  npm: 10.7.0 - ~/.nvm/versions/node/v18.20.3/bin/npm
  pnpm: 9.11.0 - ~/.nvm/versions/node/v18.20.3/bin/pnpm
NPM Packages:
  @aws-amplify/auth-construct: 1.3.1
  @aws-amplify/backend: 1.3.0
  @aws-amplify/backend-auth: 1.2.0
  @aws-amplify/backend-cli: 1.2.8
  @aws-amplify/backend-data: 1.1.4
  @aws-amplify/backend-deployer: 1.1.4
  @aws-amplify/backend-function: 1.5.0
  @aws-amplify/backend-output-schemas: 1.2.0
  @aws-amplify/backend-output-storage: 1.1.2
  @aws-amplify/backend-secret: 1.1.3
  @aws-amplify/backend-storage: 1.2.0
  @aws-amplify/cli-core: 1.1.3
  @aws-amplify/client-config: 1.3.2
  @aws-amplify/deployed-backend-client: 1.4.1
  @aws-amplify/form-generator: 1.0.3
  @aws-amplify/model-generator: 1.0.8
  @aws-amplify/platform-core: 1.1.0
  @aws-amplify/plugin-types: 1.3.0
  @aws-amplify/sandbox: 1.2.2
  @aws-amplify/schema-generator: 1.2.4
  aws-amplify: 6.6.2
  aws-cdk: 2.160.0
  aws-cdk-lib: 2.160.0
  typescript: 5.6.2
AWS environment variables:
  AWS_STS_REGIONAL_ENDPOINTS = regional
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
  AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables

Describe the feature

With amplify 1, I can give the names, I want for my resources in Cogito , AppSync, etc with the command amplify add auth
What is this command with Amplify 2? With npx ampx sandbox I do not control the name of my resources.

Use case

I would like something like npx ampx sandbox add auth or npx ampx sandbox add api or npx ampx sandbox add storage

@yotchoun yotchoun added the pending-triage Incoming issues that need categorization label Sep 29, 2024
@ykethan
Copy link
Member

ykethan commented Sep 30, 2024

Hey @yotchoun, thank you for reaching out. The define methods provided in Amplify Gen 2, does provide the name property which should allow you to add a name for the resource.

For example on function and storage:
https://docs.amplify.aws/react/build-a-backend/functions/configure-functions/#name
https://docs.amplify.aws/react/build-a-backend/storage/set-up-storage/#building-your-storage-backend

@ykethan ykethan added pending-response Issue is pending response from author backend-cli Issue is related to Amplify backend CLI labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend-cli Issue is related to Amplify backend CLI pending-response Issue is pending response from author pending-triage Incoming issues that need categorization
Projects
None yet
Development

No branches or pull requests

2 participants