Cloudformation for multi region

0

Our infrastructure runs in multiple regions, and we have been using Cloudformation to create and make changes to the resources. I have one template but different variables. However, some regions have slight differences, so the template is slightly different. For example - us-east-1 has two target groups for one autoscaling group and one target group for two auto-scaling groups in us-west-1. I can add conditionals to handle it or keep the template region specific. I'm leaning towards a per-region template since it'll be easier to manage and read the code, but there will be some repetitive code. I'm wondering how you all use Cloudformation in this setting. Do you have a template per region or the same template but different variables?

Thank you

質問済み 1年前460ビュー
1回答
0

you have several options

first, you can use cloudformation template with conditions https://curiousorbit.com/blog/cloudformation-using-conditions/

or you can use multi-region template for cloud formation https://docs.aws.amazon.com/solutions/latest/multi-region-infrastructure-deployment/template.html

but these options have too much limits

Another option would be using a configuration management tool like Terraform, which provides more flexibility and can manage multi-region deployments more easily than CloudFormation.

profile picture
エキスパート
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ