Link Search Menu Expand Document

Table of contents

Outputs

Outputs can be added to allow importing into another stack.

Info on Outputs from AWS can be found here

Outputs can be added by calling the outputs function.

outputs(
    "StackVPC" to Output(
            value = vpc.ref(),
            description = "The ID of the VPC",
            export = Output.Export(awsStackName + "-VPCID")
    )
)

Produces

Outputs:
  StackVPC:
    Value:
      Ref: "VPC"
    Description: "The ID of the VPC"
    Export:
      Name:
        Fn::Join:
        - ""
        - - Ref: "AWS::StackName"
          - "-VPCID"