most-mouse-38002
07/04/2023, 12:50 PMfor i, sn := range c.Subnets {
_, err := ec2.NewRouteTableAssociation(c.cfg.Ctx, fmt.Sprintf("rtAssociation-%v", i), &ec2.RouteTableAssociationArgs{
RouteTableId: c.Vpc.DefaultRouteTableId,
SubnetId: sn.ID(),
})
if err != nil {
return err
}
}
echoing-dinner-19531
07/05/2023, 8:02 AM