AWS Cloudformation Template

0 votes

How can i create AWS Cloudformation Template using AWS CloudFormer of my eExisting Infrastrcture

How can i create a Cloud Formation Templates image file so that i can replicate same in the same AZ or deploy at Region with the change of Object ID like AMI ID, etc..

Can someone help?

Dec 28, 2018 by Sradha
• 1,720 points
123 views

1 answer to this question.

0 votes

1) To retain certain resources when deleting a stack, you can use DeletionPolicy attributes in your CloudFormation template (JSON or YAML). 

DeletionPolicy options include:

  • Retain: You retain the resource in the event of a stack deletion.
  • Snapshot: You get a snapshot of the resource before it’s deleted. This option is available only for resources that support snapshots.
  • Delete: You delete the resource along with the stack. This is the default outcome if you don’t set a DeletionPolicy.

To keep or copy resources when you delete a stack, you can specify either the Retain or Snapshot policy options.

You can also refer to this link for further review: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html

2) You can use the vpc id of your custom VPC and copy that in the Resources section of the template.

3) I am not totally aware of any particular reason as to why this happens. Please give me some time to look into it and provide you the best solution.

Hope this helps.

answered Dec 28, 2018 by Samarah Morgan

Related Questions

0 votes
1 answer
+1 vote
2 answers
+3 votes
1 answer

aws cloudformation for atomic stack-update

When you perform a stack update, only ...READ MORE

answered Mar 27, 2018 in AWS by DareDev
• 6,810 points
68 views
0 votes
2 answers
0 votes
1 answer

AWS: OpsWorks and cloudformation

OpsWorks and CloudFormation both support application modelling, ...READ MORE

answered Jun 12, 2018 in Cloud Computing by hemant
• 5,750 points
63 views
0 votes
1 answer

How to provide tags for the stack in CloudFormation Template?

In the template anatomy, you cant set ...READ MORE

answered Aug 13, 2018 in AWS by bug_seeker
• 15,350 points
3,622 views
+1 vote
1 answer
0 votes
1 answer