CloudFormation COPY COPY Flashcards
What are the 6 Cloudformation template components nd what do they do?
- Resources: The AWS resources you want
- Parameters: Dynamic inputs to your template
- Mappings: Static variables for your template
- Outputs: References to what has been created
- Conditionals: List of conditions to perform resource creation
- MetaData
What are the 2 template helpers and what do they do?
- References: Link variables in your template
- Functions: Transform data in the template
What form does the Resource type identifier come in?
AWS::aws-product-name::data-type-name
AWS::AutoScaling::ScalingPolicy
What 2 properties must all Resources have?
- Type
- Parameters
What 5 data types are permitted for Parameter Types?
- String
- Number
- CommaDelimtedList
- List
- AWS Parameter
How can you reference parameters in the yaml template?
Use the Fn::Ref Function. In yaml it is “!Ref “
What is a Psuedo Parameter?
It is a parameter provided by AWS for any Cloudformation template.
What are the 6 Pseudo Parameters?
- AWS::AccountId
- AWS::NotificationARNs
- AWS::NoValue
- AWS::Region
- AWS::StackId
- AWS::StackName
What are Cloudformation Mappings?
They are hardcoded fixed variables in the template
How do you access Mapping Values?
Use the Fn::FindInMap Function. It takes 3 values:
“!FindInMap [MapName, TopLevelKeyName, SecondLevelKeyName]”
What are CLoudformation Outputs?
Optional outputs we can export and then import into other stacks.
How do you reference an output in a different stack?
Use the Fn::ImportValue function. !ImportValue
What are the 5 logical functions available for conditionals?
- Fn::And
- Fn::Equals
- Fn::If
- Fn::Not
- Fn::Or