lib/bosh-bootstrap/microbosh_providers/aws.rb in bosh-bootstrap-0.14.3 vs lib/bosh-bootstrap/microbosh_providers/aws.rb in bosh-bootstrap-0.14.4

- old
+ new

@@ -60,12 +60,18 @@ "default_key_name"=>microbosh_name, "ec2_private_key"=>private_key_path} end def security_groups - ["ssh", - "dns_server", - "bosh"] + sg_suffix="" + if vpc? + sg_suffix="-#{settings.address.vpc_id}" + end + [ + "ssh#{sg_suffix}", + "dns-server#{sg_suffix}", + "bosh#{sg_suffix}" + ] end def aws_region settings.provider.region end