CloudFormation Flashcards

1
Q

What are the valid CloudFormation Parameter types?

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the use of the mappings section of a CloudFormation template?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In a CloudFormation template, you need to select EC2 instances from a list of pre-approved instance types. How would you create this?

A

AllowedValues refers to an array containing the list of values allowed for the parameter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the CloudFormation pseudo parameters?

A

AWS::AccountId
AWS::NotificationARNs
AWS::NoValue
AWS::Partition
AWS::Region
AWS::StackId
AWS::StackName
AWS::URLSuffix

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The CloudFormation deployment package for a Lambda function.

A
  • 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly