Friday, January 6, 2023

example of cloudformation Metadata, Parameters and Outputs section

In This tutorial we are introducing another CF sections, which as follow.

1) Metadata:
section lets you associate a resources with structured data(in sequence) during the template runtime.


2) Parameters:
section enable you to input custom values to your template its also appeared during the stack creation.

3) Outputs: s
ection declares output values that you can import into other stacks (to create cross-stack references) or view the output value on the AWS CloudFormation console. For example, you can get output of the EC2 Instance Elastic ip address.
 

Step 1) Let's Define the Metadata Section in Yaml.

Note: Metadata Section depends on Parameters Section.




Step 2) Let's Define the Parameters Section in Yaml.



 

Step 3) Let's Define the Resources Section in Yaml.

 


 

Step 4) Let's Define the Outputs Section in Yaml.

 




" If You are Still Struggling to align all the Resources into single template,

So don't worry I am sharing complete template below."

No comments:

Post a Comment

testing