Close
logoStacktape docs



Stack Outputs

Overview

Stack outputs are specified in the output section of the Stacktape template file.

  • Stacktape prints output values into the console after each successful deployment. By default, outputs are also saved into a ./outputs directory.
  • Outputs can be used to pass information from one stack to another. See CfStackOutput directive to see how to reference outputs between stacks.
  • Stacktape adds potentially helpful outputs by default. These outputs include URLs of databases, domain names, URLs of API Gateways/Load balancers, etc.
StackOutputs  API reference
disableSaveToFileSystem
Type: boolean

Disables saving your stack outputs to a local file system.

directoryPath
Type: string

Directory to save your stack outputs to.

Required

Each output value has the following structure:

StackOutputValue  API reference
Parent API reference: StackOutputs
Required
name
Type: string

Name of the stack output

Required
value
Type: string

Value of the stack output

description
Type: string

Human-readable description of the stack output

Default: true
export
Type: boolean

Exports the stack output so it can be referenced by another stack.

The following example shows:

  • template with single bucket specified
  • the name of the bucket is passed as the output and can be used locally or referenced in

outputs:
values:
- name: baseBucketName
value: $GetParam('baseBucket', 'Bucket::Name')
resources:
baseBucket:
Type: bucket