Skip to content

Unable to seed sandbox - getId export is missing #3244

Description

@amuresia

Environment information

System:
  OS: macOS 26.4.1
  CPU: (8) arm64 Apple M1 Pro
  Memory: 165.55 MB / 16.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 24.15.0 - /Users/andrei.muresianu/.nvm/versions/node/v24.15.0/bin/node
  Yarn: 1.22.22 - /opt/homebrew/bin/yarn
  npm: 11.12.1 - /Users/andrei.muresianu/.nvm/versions/node/v24.15.0/bin/npm
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/auth-construct: 1.11.2
  @aws-amplify/backend: 1.23.0
  @aws-amplify/backend-ai: Not Found
  @aws-amplify/backend-auth: 1.9.4
  @aws-amplify/backend-cli: 1.8.3
  @aws-amplify/backend-data: 1.7.0
  @aws-amplify/backend-function: 1.18.1
  @aws-amplify/backend-output-schemas: 1.8.0
  @aws-amplify/backend-output-storage: 1.3.5
  @aws-amplify/backend-secret: 1.4.2
  @aws-amplify/backend-storage: 1.5.0
  @aws-amplify/cli-core: 2.2.5
  @aws-amplify/client-config: 1.10.2
  @aws-amplify/data-construct: 1.17.3
  @aws-amplify/data-schema: 1.26.0
  @aws-amplify/deployed-backend-client: 1.8.2
  @aws-amplify/form-generator: 1.2.7
  @aws-amplify/model-generator: 1.2.3
  @aws-amplify/platform-core: 1.11.1
  @aws-amplify/plugin-types: 1.12.1
  @aws-amplify/sandbox: 2.2.1
  @aws-amplify/schema-generator: 1.4.1
  @aws-cdk/toolkit-lib: 1.19.0
  aws-amplify: 6.18.0
  aws-cdk-lib: 2.259.0
  typescript: 6.0.3
CDK CLI Version: 2.1127.0 (build 425ccb0)
normal verbosity, no debugging
AWS environment variables:
  AWS_PROFILE = *****
  AWS_EC2_METADATA_DISABLED = true
No CDK environment variables

Describe the bug

Unable to run the seed command due to the missing getId export.

Reproduction steps

npx ampx sandbox seed
seed is running...

ampx sandbox seed

Seeds sandbox environment

Commands:
  ampx sandbox seed generate-policy  Generates policy for seeding

Options:
      --debug       Print debug logs to the console
                                                [boolean] [default: false]
      --identifier  An optional identifier to distinguish between differen
                    t sandboxes. Default is the name of the system user ex
                    ecuting the process                           [string]
      --profile     An AWS profile name.                          [string]
  -h, --help        Show help                                    [boolean]

[SeedingFailedError] Seed failed to complete
  ∟ Caused by: [SyntaxError] The requested module '@aws-amplify/core' does not provide an export named 'getId'
Resolution: Check the Caused by error and fix any issues in your seed script

It works if I add the following to my package.json

"overrides": {
    "@aws-amplify/seed": {
      "aws-amplify": "6.18.0"
    }
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-triageIncoming issues that need categorization

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions