[CloudFormation] 템플릿 구조

tallhyun·2020년 5월 13일
0

AWSTemplateFormatVersion: "version date"

# https://docs.aws.amazon.com/ko_kr/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html
Parameters:
  UserName:
    Description: UserName for IAM
    Type: String

# https://docs.aws.amazon.com/ko_kr/AWSCloudFormation/latest/UserGuide/mappings-section-structure.html
Mappings:
  RegionMap: 
    us-east-1:
      HVM64: ami-0ff8a91507f77f867
      HVMG2: ami-0a584ac55a7631c0c
    us-west-1:
      HVM64: ami-0bdb828fd58c52235
      HVMG2: ami-066ee5fd4a9ef77f1

# https://docs.aws.amazon.com/ko_kr/AWSCloudFormation/latest/UserGuide/conditions-section-structure.html
Conditions:
  MyCondition1: !Equals [ !Ref 'AWS::Region', us-ease-1 ]

# https://docs.aws.amazon.com/ko_kr/AWSCloudFormation/latest/UserGuide/resources-section-structure.html
Resources:
  createIAMUser:
    Type: AWS::IAM::User
    Properties:

# https://docs.aws.amazon.com/ko_kr/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html
Outputs:
  IAMtest:
    Value:

Description:
  String

Metadata:
  ?
  
Transform:
  ?

출처: https://docs.aws.amazon.com/ko_kr/AWSCloudFormation/latest/UserGuide/template-anatomy.html

profile
보안, 클라우드, 풀스택에 관심이 있습니다.

0개의 댓글