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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南