YAML AWSTemplateFormatVersion:2010-09-09Parameters:EnvType:Description:Environmenttype.Default:testType:StringAllowedValues:-prod-testConstraintDescription:mustspecifyprodortest.Conditions:CreateProdResources:!
YAML Syntax for the full function name: Fn::If: [condition_name, value_if_true, value_if_false] Syntax for the short form: !If [condition_name, value_if_true, value_if_false] Parameters condition_name A reference to a condition in the Conditions section. Use the condition's name to ...
Furthermore, when writing templates in YAML, CloudFormation users can also use YAML's literal block scalar feature (introduced with |) to improve the readability of multiline strings. However, this is often used in conjunction with !Sub but is a distinct feature of YAML, not Fn::Sub itself....
You can then query that mapping table later within your template, so that the right AMI would be picked depending on the region you are deploying to. Conditions This is an optional section within the template. Within this section you can help the template to decide whether not to do somethin...
docker run --rm -v`pwd`:/data cfn-lint:latest /data/template.yaml Editor Plugins There are IDE plugins available to get direct linter feedback from you favorite editor: Atom Emacs NeoVim 0.2.0+/Vim 8 ALE Coc Syntastic Sublime Visual Studio Code ...
The Rubycfn CLI can be piped to or takes a file name as argument. You can start by cloning theRubycfn Examples Repository. To generate a CloudFormation template type: cat "3. Deploying a Serverless function.rb" | rubycfn or rubycfn "3. Deploying a Serverless function.rb" ...
The network-role-stackset.yaml template defines the resources for the two roles. It takes two parameter values: networkAccountId, which is used to set the AWS account that will be defined as the central network account, and organizationId. The template also uses the CloudFormation Conditions s...
YAML Let’s take a look at an example of using filters to validate properties for both volumes in the previous example. First, create a filter to select all resources of typeAWS::EC2::Volume. You further refine the selection of volumes into two sets:your_volume_no_iops_specifiedandyour_vo...
YAML Type:AWS::CloudFormation::WaitConditionProperties:Count:IntegerHandle:StringTimeout:String Properties Count The number of success signals that CloudFormation must receive before it continues the stack creation process. When the wait condition receives the requisite number of success signals, CloudFormati...
YAML Type: AWS::LakeFormation::Tag Properties: CatalogId: String TagKey: String TagValues: - String Properties CatalogId Catalog id string, not less than 1 or more than 255 bytes long, matching the single-line string pattern. The identifier for the Data Catalog. By default, the account...