Skip to main content

@reapit-cdk/cross-region-stack-export

npm version npm downloads coverage: 71.85%25 Integ Tests: X

Allows you to share values between stack across regions and accounts.

Package Installation:

yarn add --dev @reapit-cdk/cross-region-stack-export
# or
npm install @reapit-cdk/cross-region-stack-export --save-dev

Usage

import { CfnOutput, Stack, App } from 'aws-cdk-lib'
import { CrossRegionStackExport } from '@reapit-cdk/cross-region-stack-export'
import { Bucket } from 'aws-cdk-lib/aws-s3'

const app = new App()
const euStack = new Stack(app, 'stack-eu', {
  env: {
    account: '11111111',
    region: 'eu-west-1',
  },
})

const exporter = new CrossRegionStackExport(euStack, 'exporter')
exporter.setValue('thing', 'avalue')

const bucket = new Bucket(euStack, 'bucket')
exporter.setValue('bucketArn', bucket.bucketArn)

const usStack = new Stack(app, 'stack-us', {
  env: {
    account: '2222222222',
    region: 'us-east-1',
  },
})

const importer = exporter.getImporter(usStack, 'eu-importer')

const euThing = importer.getValue('thing')
const euBucket = Bucket.fromBucketArn(usStack, 'eu-bucket', importer.getValue('bucketArn'))

new CfnOutput(usStack, 'euThing', {
  value: euThing,
})

new CfnOutput(usStack, 'euBucketName', {
  value: euBucket.bucketName,
})

Metadata

Release files for reapit-cdk.cross-region-stack-export 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reapit-cdk.cross-region-stack-export 0.1.2
File Size Uploaded Provenance Actions
reapit-cdk.cross-region-stack-export-0.1.2.tar.gz 121.1 kB Without provenance Details for reapit-cdk.cross-region-stack-export-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reapit-cdk.cross-region-stack-export 0.1.2
File Interpreter ABI Platform Actions
reapit_cdk.cross_region_stack_export-0.1.2-py3-none-any.whl Python 3 none any Details for reapit_cdk.cross_region_stack_export-0.1.2-py3-none-any.whl

Total release size: 241.0 kB

Release files / reapit-cdk.cross-region-stack-export-0.1.2.tar.gz

Download URL reapit-cdk.cross-region-stack-export-0.1.2.tar.gz
Size 121.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3fd8d16fa3ff5bb4f8a8eff7f93211b6b863d4072ba012e012596df5eec8da6a
BLAKE2b-256 checksum
How to use checksums
0e948a738debc264868d5145648a628ba9271bee22199246169dae7bdb627dba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release files / reapit_cdk.cross_region_stack_export-0.1.2-py3-none-any.whl

Download URL reapit_cdk.cross_region_stack_export-0.1.2-py3-none-any.whl
Size 120.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2d29fb09a4f2b43a31826192e1056d6c7b55d12c1ea07deb8238ed4152ae103
BLAKE2b-256 checksum
How to use checksums
1d63ed044082e03a3fc7984f34e911fe7512dcf70fc986b0983ab566d74b97db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Security for reapit-cdk.cross-region-stack-export 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page