AWSTemplateFormatVersion

Description

# Example 1
Description: CloudFormation Template

# Example 2
Description: >
Consists of
- VPC
- IGW
- Subnets

Metadata

다음과 같이 CloudFormation에 특화된 자원들을 정의

Parameters

환경과 버전에 따라 서로 다른 값을 사용할 수 있는 Parameter 정의, Parameter “A”를 선언했을 경우, Template 내 다른 위치에서 !Ref A로 Parameter A의 값 참조 가능

속성

Type: Parameter의 종류(자료형)

AWS에 특화된 Type도 존재, 해당 Type으로 이미 존재하는 AWS 자원을 Parameter 값으로 선택

Default : Parameter의 기본값 정의

AllowedValues : 허용되는 Parameter 값의 목록 정의

AllowedPattern : 정규 표현식으로 허용되는 Parameter 값 제한