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

질문됨 2년 전1424회 조회
3개 답변
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
답변함 2년 전
  • 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
전문가
kentrad
답변함 2년 전
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
지원 엔지니어
답변함 2년 전

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

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

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

관련 콘텐츠