state-config

Retrieve remote Terraform/OpenTofu state backend config

Synopsis

Retrieves remote state and generates backend.tf and optional vars file for local Terraform/OpenTofu development based on the last deployment. Use this command to set up your local environment for working with the remote state. Optionally, you can specify an artifact ID to filter the artifacts in the deployment. (example - --artifact-id "aws_*") By default, it will try to find bricks.json in the current directory and use its name as a prefix for the artifact search.

bricks blueprint state-config [deployment-slug] [flags]

Examples

bricks bp state-config <deployment-slug>

Options

  -a, --artifact-id string   Glob search pattern for artifacts in the deployment.

Options inherited from parent commands

      --api-key string    API key for authentication (overrides JWT)
      --config string     config file (default is $HOME/.bricks/config.yaml)
  -h, --help              Print Help message for Bricks CLI
      --non-interactive   Suppresses interactive UI elements for non-interactive environments
  -v, --version           Print bricks CLI version

SEE ALSO

  • bricks blueprint - Manage blueprints - create, publish, add dependencies, and configure packages

Last updated

Was this helpful?