Slide 7
Slide 7 text
様々なプログラミング言語でも使える様なループ処理が行える機能です。
これを使うことで冗長なコードの定義が不要となりました。
ForEachってなんだ?
#フレッシュメンLT
Parameters:
VPCList:
Type: List
Default: VPC01,VPC02,VPC03
Resources:
Fn::ForEach::VPCListLoop:
- VPCNames
- !Ref VPCList
- ${VPCNames}:
Type: AWS::EC2::VPC
Properties:
CidrBlock: "192.168.0.0/16"
Tags:
- Key: Name
Value: !Ref VPCNames
Resources:
VPC01:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
VPC02:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
VPC03:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
==