Repository navigation
Commit ffae861
authored
feat(core): add Fn::GetStackOutput for cross-region references (#37724)
By default, the CDK only allows references between resources if they are in the same environment (account and region). But users can opt in to an experimental feature that allows cross-region, same-account references, by setting the `crossRegionReference` flag to `true` in the consumer stack. With this feature on, when there is a cross-region reference, the CDK generates two custom resources that communicate with each other via SSM parameters. A writer resource is deployed to the producer stack, and a reader resource is deployed to the consumer stack.
So far, this was the best mechanism to "export" a value in the producer and "import" it in the consumer. But CloudFormation has now released a new intrinsic function, `Fn::GetStackOutput`, which, as the name suggests, gets the value of a arbitrary output. This function works cross-region and cross-account. This PR introduces support for these two use cases.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*1 parent e207b76 commit ffae861
105 files changed
Lines changed: 23366 additions & 21988 deletions
File tree
- packages
- @aws-cdk-testing/framework-integ/test
- aws-cloudformation/test
- integ.core-cross-region-references.js.snapshot
- asset.b5c2a7158e57582e84496b24c0499302cec1fd88624535b3dfb629311b3fdc2a.bundle
- asset.bbfb567dc956ce71e67ac1f96589821990e2ca48307b93a577bbb345d2de441b
- aws-cloudfront/test/integ.cloudfront-cross-region-cert.js.snapshot
- asset.60421a06a6846f7ec41515588156a3fe78eb4aa7ff8fac2ac01c2c1d4e9b87d4
- asset.688cb77e4de018e0c62d640095c4e8a1f3cea0a8a355f6d047f99dc9ce796073
- aws-codepipeline-actions/test/integ.pipeline-with-replication.js.snapshot
- asset.bbfb567dc956ce71e67ac1f96589821990e2ca48307b93a577bbb345d2de441b
- aws-ecs/test/fargate/snapshot-provider
- aws-route53-patterns/test/integ.hosted-redirect.js.snapshot
- asset.60421a06a6846f7ec41515588156a3fe78eb4aa7ff8fac2ac01c2c1d4e9b87d4
- aws-stepfunctions-tasks/test/apigateway/integ.call-rest-api-cross-region.js.snapshot
- asset.60421a06a6846f7ec41515588156a3fe78eb4aa7ff8fac2ac01c2c1d4e9b87d4
- asset.688cb77e4de018e0c62d640095c4e8a1f3cea0a8a355f6d047f99dc9ce796073
- core/test/integ.cross-region-references.js.snapshot
- asset.60421a06a6846f7ec41515588156a3fe78eb4aa7ff8fac2ac01c2c1d4e9b87d4
- asset.688cb77e4de018e0c62d640095c4e8a1f3cea0a8a355f6d047f99dc9ce796073
- aws-cdk-lib
- aws-route53-patterns/test
- core
- lib
- private
- stack-synthesizers
- test
- custom-resource-provider
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments