3

I've got a dozen or so EBS backed instances of various sizes in a VPC, multiple security groups, route53 for internal name service.

I'd like to clone the whole thing to another availability zone. Has anyone done such a thing? OpsWorks appears to have that feature. Has anyone used it?

jorfus
  • 715
  • 7
  • 14

2 Answers2

8

CloudFormer and CloudFormation would be good tools for this.

CloudFormer lets you create AWS CloudFormation templates from resources that are already existing in your account. These generated templates are basically just JSON that expresses each type of resource that CloudFormer examined. You can then take the generated template as a base, tweak the configuration of each resource as you need, and then use the template to launch those resources.

Resources:

Anthony Neace
  • 1,011
  • 10
  • 18
  • Awesome, that looks very promising. I'll give it a whirl and report back! – jorfus May 06 '15 at 22:19
  • I cloned a stack to another availability zone. I had to manually copy the EBS snapshots over and there was a lot of obscure template work, and abstracting the template is a challenge. Got some help from a class at the AWS loft. Some other AWS infrastructure automation tools might be easier. I hear good things about Terraform and Salt. – jorfus Dec 10 '15 at 01:38
  • i am looking for is there any way to clonse ecs cluster of micro services or your solution can help mine too.Thanks – Adiii Apr 04 '17 at 19:09
0

I started using Terraform and the Terraform import tool called Terraforming. I find them much more to my liking. For one thing Terraform allows iterative changes while Cloudformation seems to want to refresh the whole stack when things change. I also find the Terraform syntax and documentation quite approachable. I'm particularly fond of variable abstraction and interpolation options. I've created core stack templates which can be re-used in various environments.

jorfus
  • 715
  • 7
  • 14