AWS CloudFormation Nested Stacks Resource

Nested Stacks Resource

Prev Question Next Question

Question

Which of the following resource is used in Cloudformation to create nested stacks.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - A.

The AWS Documentation mentions the following.

A nested stack is a stack that you create within another stack by using the AWS::CloudFormation::Stack resource.

With nested stacks, you deploy and manage all resources from a single stack.

You can use outputs from one stack in the nested stack group as inputs to another stack in the group.

For more information on AWS::CloudFormation::Stack resource , please refer to the below link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html

The correct answer is C. AWS::CloudFormation::NestedStack.

AWS CloudFormation is a service that helps you model and set up your Amazon Web Services (AWS) resources so that you can spend less time managing those resources and more time focusing on your applications that run in AWS. It provides a common language for you to describe and provision all the infrastructure resources in your cloud environment.

CloudFormation enables you to use nested stacks to encapsulate common sets of AWS resources that you want to manage as a single unit. You can create a stack that contains one or more nested stacks. In turn, those nested stacks can contain other nested stacks. You can nest stacks to help with the organization of your resources and to control permissions.

To create a nested stack in AWS CloudFormation, you use the AWS::CloudFormation::NestedStack resource type. This resource type enables you to specify a template that defines a set of resources, which can be created and managed as a single unit.

Option A (AWS::CloudFormation::Stack) is used to create a new CloudFormation stack.

Option B (AWS::CloudFormation::Nested) is not a valid CloudFormation resource type.

Option D (AWS::CloudFormation::StackNest) is not a valid CloudFormation resource type.