Cloudformation Flashcards
What are the 5 parameter types for Cloudformation?
- String
- Number
- CommaDelimitedList
- List
- AWS Parameter
How do you reference a parameter in the template?
use the !Ref function
What are the 6 Psuedo Parameters provided by AWS?
- AccountId
- NotificationARNs
- NoValue
- Region
- StackName
- StackId
What should I do if an AWS resource is not supported in CLoudformation?
Use Lambda Custom Resources
How do you reference a value from another template?
Use the !ImportValue function
How do you make a value useable outside the template?
Export it in the Output section
What are the 7 Intrinsic functions available?
- Ref
- GetAtt
- FindInMap
- ImportValue
- Join
- Sub
- Conditions
What is UserData?
It is a bash script you can include in the template to run on instance boot.
What is cfn:init?
It is a helper script that reads metadata and is more readable/maintainable than UserData
How do you use UserData and cfn:init together?
- UserData should update aws-cfn-bootstrap and start cfn init. cfn:init should install everything
How do you ensure the cfn:init has run?
Use cfn-signal