CloudFormation Flashcards
What are the valid CloudFormation Parameter types?
String
Number: An integer or float
List<Number>
CommaDelimitedList
AWS::EC2::KeyPair::KeyName
AWS::EC2::SecurityGroup::Id
AWS::EC2::Subnet::Id
AWS::EC2::VPC::Id:
List<AWS::EC2::VPC::Id>
List<AWS::EC2::SecurityGroup::Id>
List<AWS::EC2::Subnet::Id></Number>
What is the use of the mappings section of a CloudFormation template?
The Mappings section matches a key to a corresponding set of named values.
You use the Fn::FindInMap
intrinsic function to retrieve values in a map.
A mapping is not a list, rather, it consists of key value pairs. You can’t include parameters, pseudo parameters, or intrinsic functions in the Mappings section.
In a CloudFormation template, you need to select EC2 instances from a list of pre-approved instance types. How would you create this?
AllowedValues refers to an array containing the list of values allowed for the parameter.
What are the CloudFormation pseudo parameters?
AWS::AccountId
AWS::NotificationARNs
AWS::NoValue
AWS::Partition
AWS::Region
AWS::StackId
AWS::StackName
AWS::URLSuffix
The CloudFormation deployment package for a Lambda function.
- Specify the location of a container image in the Amazon ECR registry.
- Specify the location of a .zip file deployment package object in Amazon S3.
- For Node.js and Python functions, you can specify the function code inline in the template.