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,760 points
527 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
0 votes
0 answers

How to specify Ec2 Instance Attributes in a AWS::EMR::Cluster CloudFormation Template?

Very new to AWS and looking at ...READ MORE

Feb 10, 2022 in AWS by Rahul
• 2,120 points
640 views
0 votes
1 answer
+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,890 points
1,243 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,790 points
657 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,510 points
19,793 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP