gcluster export-outputs

NAME

gcluster export-outputs - exports outputs from a deployment group.

SYNOPSIS

gcluster export-outputs DEPLOYMENT_GROUP_DIRECTORY [FLAGS]

DESCRIPTION

The gcluster export-outputs command exports output values from a specific deployment group to other deployment groups that depend on them. This command passes values, such as IP addresses or resource IDs, between modules in a sequential deployment. To import these values in dependent groups, use the gcluster import-inputs command.

FLAGS

  • -a, --artifacts ARTIFACTS_DIR: The directory where deployment artifacts are stored. If you omit this flag, then the gcluster CLI configures the directory automatically.
  • --parallelism N: Limits the number of concurrent Terraform operations. Specify an integer of 0 or greater:

    • 1 or greater: passes N to Terraform and overrides the GCLUSTER_TERRAFORM_PARALLELISM environment variable.
    • 0 or omitted: uses the GCLUSTER_TERRAFORM_PARALLELISM environment variable if set to a positive integer, or falls back to the Terraform default of 10.

EXAMPLES

To export outputs from a deployment group directory:

gcluster export-outputs ./my-deployment/primary-cluster

To export outputs specifying a custom artifacts directory:

gcluster export-outputs ./my-deployment/primary-cluster \
    --artifacts=./my-deployment/.artifacts