cdk-eks-blueprints icon indicating copy to clipboard operation
cdk-eks-blueprints copied to clipboard

Deploy multiple clusters using NestedStack

Open praveenperera opened this issue 3 years ago • 3 comments

Describe the feature

I would like to have one stack for example: StagingStack, that contains two blueprint clusters (1 in us-east-1, 1 in europe). And have them both deploy as a single stack. I think if blueprints were NestedStacks instead of Stacks this could work?

Use Case

Multi region cluster deployments

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • [ ] I may be able to implement this feature request

CDK version used

2.47

EKS Blueprints Version

No response

Node.js Version

16.15

Environment details (OS name and version, etc.)

macOS 12.6

praveenperera avatar Oct 21 '22 21:10 praveenperera

@praveenperera Grouping of stacks for deployment pipeline is generally recommended with the waves feature of pipelines: https://aws-quickstart.github.io/cdk-eks-blueprints/pipelines/#adding-waves With this you can define a staging wave and add two clusters to it. Depending on the use case (is it for demo purposes or a real customer use case), I will think about approaches to implement this feature.

shapirov103 avatar Oct 24 '22 18:10 shapirov103

@shapirov103 This is a real customer use case (production and staging clusters in multiple regions). i think the waves feature will work for me. I will try it out and let you know how it goes. I appreciate the help.

praveenperera avatar Oct 24 '22 19:10 praveenperera

@shapirov103

On second thought I'm not sure this would work. For the stacks, I create the VPC separately and pass it as a DirectVpcProvider. I do this because in some regions we only need 1 AZ for that region.

It looks a little like this:

ProductionClusterSystemStack

  • 1 "master" cluster (us-east-1)
  • 1 "secondary" cluster (eu-central-1)
  • 1 "regional" (1 AZ) cluster (ap-northeast-3)
  • 1 "regional" (1 AZ) cluster (ap-south-1)

StagingClusterSystemStack

  • 1 "master" cluster (us-east-1)
  • 1 "secondary" cluster (eu-central-1)

I'd like to deploy all the clusters fro Production as one stack and all the clusters for Staging as one stack. I think NestedStack would work for this.

praveenperera avatar Oct 24 '22 22:10 praveenperera

This issue has been automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] avatar Sep 19 '23 00:09 github-actions[bot]

Issue closed due to inactivity.

github-actions[bot] avatar Nov 18 '23 00:11 github-actions[bot]