Is something like this going to risk recreation of...
# general
m
Is something like this going to risk recreation of the resources, or is this a safe thing to do (using the “iterator” in the name)?
Copy code
for 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
		}
	}
e
This should be fine