diff --git a/drivers/amazonec2/amazonec2.go b/drivers/amazonec2/amazonec2.go index a41fd038e6..e7ae12825e 100644 --- a/drivers/amazonec2/amazonec2.go +++ b/drivers/amazonec2/amazonec2.go @@ -250,7 +250,7 @@ func (d *Driver) Create() error { } for _, s := range subnets { - if s.AvailabilityZone == regionZone { + if s.AvailabilityZone == regionZone && s.VpcId == d.VpcId { subnetId = s.SubnetId break }