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

질문됨 일 년 전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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠