by shigemk2

当面は技術的なことしか書かない

AWS::EC2::SubnetRouteTableAssociation

サブネットとルートテーブルの紐付け 単一ルートテーブルで複数のサブネットを紐づけられる RouteTableId SubnetId いずれもUpdate requires: Replacement

AWS::EC2::Subnetに直接書かせるようにしないことでシンプルな論理ブロックにすることを目論んでいるのだと思われる

Associates a subnet with a route table. The subnet and route table must be in the same VPC. This association causes traffic originating from the subnet to be routed according to the routes in the route table. A route table can be associated with multiple subnets. To create a route table, see AWS::EC2::RouteTable.

docs.aws.amazon.com