Skip to content

CLI command to connect to the logs of a running sandbox #3052

@frederikbendel

Description

@frederikbendel

Environment information

System:
  OS: Windows 11 10.0.26220
  CPU: (16) x64 AMD Ryzen 7 5700U with Radeon Graphics
  Memory: 44.34 GB / 63.38 GB
Binaries:
  Node: 22.13.0 - C:\Program Files\nodejs\node.EXE
  Yarn: undefined - undefined
  npm: 11.4.2 - C:\Program Files\nodejs\npm.CMD
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/auth-construct: 1.9.0
  @aws-amplify/backend: 1.18.0
  @aws-amplify/backend-ai: Not Found
  @aws-amplify/backend-auth: 1.8.0
  @aws-amplify/backend-cli: 1.8.0
  @aws-amplify/backend-data: 1.6.2
  @aws-amplify/backend-deployer: 2.1.4
  @aws-amplify/backend-function: 1.15.1
  @aws-amplify/backend-output-storage: 1.3.2
  @aws-amplify/backend-secret: 1.4.1
  @aws-amplify/backend-storage: 1.4.2
  @aws-amplify/cli-core: 2.2.2
  @aws-amplify/client-config: 1.9.0
  @aws-amplify/data-construct: 1.16.3
  @aws-amplify/data-schema: 1.22.0
  @aws-amplify/deployed-backend-client: 1.8.1
  @aws-amplify/form-generator: 1.2.5
  @aws-amplify/model-generator: 1.2.1
  @aws-amplify/platform-core: 1.10.2
  @aws-amplify/plugin-types: 1.11.1
  @aws-amplify/sandbox: 2.1.3
  @aws-amplify/schema-generator: 1.4.1
  @aws-cdk/toolkit-lib: 1.6.1
  aws-amplify: 6.15.8
  aws-cdk-lib: 2.223.0
  typescript: 5.9.3
No AWS environment variables
No CDK environment variables

Describe the feature

Another command to stream the logs of a running sandbox.

npx ampx sandbox --stream-function-logs needs to run type checks and a full deployment before.

Use case

I have a big Schema with a deployment time of ~20 mins right now, so when im booting up i can spare that time of deployment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions