Copy/Move AWS meta infrastructure

Sebastian_Strauss
Sebastian_Strauss used Ask the Experts™
on
I know how to copy my EC2 instances to another region, but how about the connected meta infrastructure?
Such as VPC, subnet, routing tables, etc?
Because just having the EC2 instances alone isn't really sufficient... any ideas?

If this is done using the API, that's ok as well.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Phil PhillipsSenior Platform Engineer

Commented:
Programmatically, API is your best bet.  There are some tools out there that can help you with that as well, but they require a little bit of investment as far as learning and configuration. https://github.com/unifio/terraform-aws-vpc is an example.

Author

Commented:
Thank you for the response! From the looks of it though, terraform is about deploying a VPC via API... I was more thinking about copying existing configurations... so I wouldn't miss anything, rather than me automating the re-deployment.

Any other options?
Senior Platform Engineer
Commented:
Yeah, terraform is definitely the "infrastructure as code" approach.  Instead of using the UI and such to define your infrastructure, you define it with JSON. The drawback is that you do have to redefine the VPC that way. The plus side is that once you do, you can use that to apply your changes (and have it in version control), and easily clone the VPC from that point forward.

Amazon has https://aws.amazon.com/cloudformation/ as well, which is similar. I did some poking around, and haven't found a tool that can translate an existing infrastructure into teraform/CloudFormation templates unfortunately. Added to the list of my side project ideas!

Author

Commented:
Count me in. I would literally pay for that feature :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial