Parameters でテンプレートを再利用
環境ごとに値を変えてデプロイできる
Parameters:
EnvName:
Type: String
AllowedValues: [dev, stg, prod]
InstanceType:
Type: String
Default: t3.small
Resources:
WebServer:
Type: AWS::EC2::Instance
Properties:
InstanceType: !Ref InstanceType
Tags:
- Key: Env
Value: !Ref EnvName