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