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,710 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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:

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,560 points
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
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
• 14,970 points
+1 vote
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.