-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2094 from guardian/aa/riff-raff-yaml-stack-deps
feat(riff-raff.yaml): Support cross stack dependencies
- Loading branch information
Showing
3 changed files
with
98 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
"@guardian/cdk": minor | ||
--- | ||
|
||
feat(riff-raff.yaml): Support cross stack dependencies | ||
|
||
Currently the `riff-raff.yaml` generator is not able to create dependencies between `cloud-formation` deployments. This means each `cloud-formation` deployment could happen at the same time. | ||
|
||
This does not work in the scenario where we have: | ||
- Stack A containing a bucket | ||
- Stack B CODE containing an app that uses A's bucket | ||
- Stack B PROD containing an app that uses A's bucket | ||
|
||
That is, we can't guarantee Stack A is deployed first. | ||
|
||
In this change we add support for the scenario where we have a shared resources stack. | ||
The generated `riff-raff.yaml` file will describe that Stack B CODE, and Stack B PROD depend on Stack A. | ||
|
||
It uses the AWS CDK mechanism https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html#addwbrdependencytarget-reason. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters