Did you know how to clone a VPC

0

Hello Team ,

I have requirement of clone a VPC .How to clone a VPC and while cloning it would retails the same IP CIDR range .Is there any best practises available for VPC cloning .

Thanks Sujith

demandé il y a 2 ans1424 vues
3 réponses
0

There's no know API call or UI way to clone a resource. I guess you might need a tool to create a representation of your VPC in code and then change it to create the VPC clone in another region or account

For example there's a way to create a CloudFormation stack from existing resources https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-new-stack.html

In the end, a CloudFormation stack is a big text file (json text) that defines the architecture, so once created is possible to modify and export it.

You also have some third party tools like terraform able to define infrastructure as code, terraform also supports importing existing resources but it does not "write the code" for the imported resources, leaving that to the developer.

theist
répondu il y a 2 ans
  • Thank you .I will try this and update here with the results .

0

Take a look at Former2 to generate the CloudFormation templates to clone the VPC.

profile pictureAWS
EXPERT
kentrad
répondu il y a 2 ans
0

Thank you theist, and kentrad helping Sujith

Sujith, Thank you for using re:Post. Let us know if this answers your question. If this solved your issue, please remember to click on the "Accept" button to let the community know that your question is resolved. This helps everyone. Thank you in advance.

profile picture
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions