Skip to content

mswbecod/cdk-stack-output-provider

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDK Stack Output Provider

AWS CloudFormation has an architectural limitation that prevents a stack from accessing any other stack's outputs unless its in the same account and same region. This CDK Construct uses a Lambda singleton to fetch a stack's output in another region.

Note: This package is in alpha and still under development. Until it is complete, feel free to use this package as a starting point for your own projects.

Usage

import { StackOutputProvider } from "cdk-stack-output-provider";

const stackOutputResource = new StackOutputProvider(
    this,
    "StackOutputResource",
    {
        region: 'us-east-1',
        stackName: "<STACK_NAME>",
        outputKey: "<STACK_OUTPUT_KEY>"
    }
);

const myOutputValue: string = stackOutputResource.output;

About

An AWS CDK Construct that can access CloudFormation stack outputs in other regions.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages