Reputation: 643
I would like to copy configuration (like VPC, P) of one Amazon account to another account. I need to export template of the first account and import it to other.
I would like to know what it the right way to do it? what are the things I need to take to my attention?
Can someone can direct me to good document/video that explain how export/import configuration to a template and what are the things I need to consider?
Thanks.
Upvotes: 4
Views: 4143
Reputation: 988
In case someone else lands here looking for ideas ...
One way you can 'duplicate' a CloudFormation between AWS Accounts is to save it locally (your local disk). This is a simple task - Starting in the CloudFormation App in the account hosting the CF stack you want to duplicate:
Switch to the other AWS Account to import the stack into and open CloudFormation:
Upvotes: 2
Reputation: 270224
There is no easy way to copy resources from one AWS account to another.
The closest option is to create a CloudFormation template that matches your resources, and then use CloudFormation to deploy those resources in the other account.
There are various tools and services that can create CloudFormation templates from existing resources:
You will need to consider things such as:
Bottom line: You'll need a good understanding of your existing configuration to be able to reproduce it elsewhere, to make sure it works in the same manner. Hopefully, you've documented what you've created along the way.
Upvotes: 3