Slide 41
Slide 41 text
\ 積極採用中 /
Bootstrapするときのtemplateバージョンについて
v2で生成したcfnテンプレートには、modern templateのバージョンが6以上でないとエラーになるRuleが追加さ
れています!
(2022/04/06時点)
追加されるRule:
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically
retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [["1","2","3","4","5"],{"Ref": "BootstrapVersion"}]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap'
with a recent version of the CDK CLI."
}
]
}
}