AWS CloudFormation | How can I reuse resources that were already provisioned?

0

I was coding my new CloudFormation scripts, when I had a doubt: how can I reuse resources that were already provisioned using the AWS Console?

asked 4 months ago250 views
1 Answer
0

Hello,

With the AWS CloudFormation IaC generator (infrastructure as code generator), you can generate a template using AWS resources provisioned in your account that are not already managed by CloudFormation. Use the template to import resources into CloudFormation or replicate resources in a new account or Region.

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/generate-IaC.html#generate-template-console

and once you create a template from IaC generator you can start import existing resources into Cloudformation by creating a CF a stack. Here is the documentation, https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import.html

Resources that supports import can seen here: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-supported-resources.html

profile picture
EXPERT
answered 4 months ago
profile picture
EXPERT
Steve_M
reviewed 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions