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

Missed settings for adminUserPassword, domainPrefix

Open Poloten opened this issue 2 months ago • 2 comments

Environment information

System:
  OS: macOS 15.6.1
  CPU: (12) arm64 Apple M4 Pro
  Memory: 184.72 MB / 24.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 24.7.0 - /opt/homebrew/bin/node
  Yarn: undefined - undefined
  npm: 11.5.1 - /opt/homebrew/bin/npm
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/auth-construct: 1.8.1
  @aws-amplify/backend: 1.16.1
  @aws-amplify/backend-ai: Not Found
  @aws-amplify/backend-auth: 1.7.1
  @aws-amplify/backend-cli: 1.8.0
  @aws-amplify/backend-data: 1.6.1
  @aws-amplify/backend-deployer: 2.1.3
  @aws-amplify/backend-function: 1.14.1
  @aws-amplify/backend-output-schemas: 1.7.0
  @aws-amplify/backend-output-storage: 1.3.1
  @aws-amplify/backend-secret: 1.4.0
  @aws-amplify/backend-storage: 1.4.1
  @aws-amplify/cli-core: 2.2.1
  @aws-amplify/client-config: 1.8.0
  @aws-amplify/data-construct: 1.16.3
  @aws-amplify/data-schema: 1.21.1
  @aws-amplify/deployed-backend-client: 1.8.0
  @aws-amplify/form-generator: 1.2.4
  @aws-amplify/model-generator: 1.2.0
  @aws-amplify/platform-core: 1.10.0
  @aws-amplify/plugin-types: 1.11.0
  @aws-amplify/sandbox: 2.1.2
  @aws-amplify/schema-generator: 1.4.0
  @aws-cdk/toolkit-lib: 1.1.1
  aws-amplify: 6.15.5
  aws-cdk-lib: 2.214.0
  typescript: 5.8.3
No AWS environment variables
No CDK environment variables

Describe the bug

Every time after running npx ampx sandbox, I have to manually go to the AWS Console website and change the setting to enable adminUserPassword: true.

Also, I have another issue: I configured a custom domain in Cognito > User Pools > myPool > Domain — https://mycustomname.auth.us-east-1.amazoncognito.com. But every time after deployment, the domain in amplify_outputs.dart under "oauth": {"domain": ...} gets reset from mycustomname to something like 322e2dwdqwdq, and I have to manually fix it by hand.

Hepl me please, maybe I missed documentation for that.

Reproduction steps

npx ampx sandbox

Poloten avatar Sep 09 '25 21:09 Poloten