Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export current VPC infrastructure

I have a lab setup that in aws, with a vpc, an IGW a few different subnets and some ec2 instances, nothing to crazy.

I am trying to export this VPC with everything inside, but can't figure out how to do it.

I tried the cloudformer, but i keep getting errors when trying to create a stack, its keeps saying that i have reached my limit with VPC and IGW.

Is there something better to use that can export this VPC, with all ec2 and everything configured in those ec2 instances.

like image 992
Stanl l Avatar asked Jun 03 '20 19:06

Stanl l


People also ask

How do I export AWS infrastructure?

You can use CloudFormer to export your existing AWS infrastructure into CloudFormation template. Alternatively you can use terraforming ruby gem to export your infrastructure as Terraform files.

How do I export AWS VPC configuration?

To export client configuration (console)Open the Amazon VPC console at https://console.aws.amazon.com/vpc/ . In the navigation pane, choose Client VPN Endpoints. Select the Client VPN endpoint for which to download the client configuration and choose Download Client Configuration.

Does CloudFormer still exist?

Sadly CloudFormer is deprecated and no longer maintained by AWS. CloudFormer is actually a very old tool that is not maintained.

How do I export from CloudFormation?

To export a stack's output value, use the Export field in the Output section of the stack's template. To import those values, use the Fn::ImportValue function in the template for the other stacks. For a walkthrough and sample templates, see Walkthrough: Refer to resource outputs in another AWS CloudFormation stack.


1 Answers

Terraform, and in particular the TR import tool called Terraforming are very good for this type of work.

Though there is a learning curve associated with Terraform, and it's probably a good idea to start gradually with it.

like image 144
Adi Dembak Avatar answered Nov 15 '22 10:11

Adi Dembak