This repo for my Cloudformation tesing and implement few best practiese.
- template is a declaration of the AWS resources that make up a stack.
- Resources are declared in a template
- Resources map to a stack
- Declare object as a name-value pair or a pairing of a name with a set of child objects enclosed.
- The Resources object is the only required object
eg: YAML
Resources:
KasunBucket:
Type:AWS::S3::Bucket
Template Sections:
- AWSTemplatedFormatVersion
- DesCription -A text string that Describes the Template
- Metadata - Objects that provide addtional information about the template
- Parameters- Specifies values that you can pass into your tempalate at runtime
- Mappings - A mapping of keys and associated values that you can use to specify conditional parameter values, similar to lookup tables.
- Conditions - Defines conditions that control whether certain resources are created or whether certain resources properties are assigned a value during stack creation or update
- Transform - for serverless appications, specifies the version to use
- Resources - specifies that stack resources and their properties
- Outputs - Describes the values that are returned whenever you view your stack's properties