I'm sorry if this is a noob question for you but I seriously don't understand the double colon here. What does it mean ?
"Type": "AWS::EC2::KeyPair::KeyName"
I understand basic YAML syntax and couldn't find an explanation for this.
A CloudFormation template consists of 6 sections – Description, Parameters, Mappings, Conditions, Resources and Outputs. Only the Resources section is required. However, as a good practice, we highly recommend using all the sections of a template.
AWS CloudFormation supports the YAML Version 1.1 specification with a few exceptions. AWS CloudFormation doesn't support the following features: The binary , omap , pairs , set , and timestamp tags. Aliases.
The application specification file (AppSpec file) is a YAML -formatted or JSON-formatted file used by CodeDeploy to manage a deployment. The AppSpec file for an EC2/On-Premises deployment must be named appspec. yml or appspec. yaml , unless you are performing a local deployment.
A rule can include a RuleCondition property and must include an Assertions property. For each rule, you can define only one rule condition. You can define one or more asserts within the Assertions property. If you don't define a rule condition, the rule's assertions always take effect.
The double colon aren't related to YAML. In fact, they've been around since the beginning of CloudFormation in JSON. AWS::EC2::KeyPair::KeyName is just the way AWS decided to name their resource types. They could have gone for AWS_EC2_KeyPair_KeyName or anything else for that matter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With