added logic to be able to pass in an array of security group ids when creating a vpc instance with a public ip