Merge pull request #2396 from dave-tucker/aws-placement

aws: Honour the zone variable when creating an instance
This commit is contained in:
Rolf Neugebauer
2017-08-10 17:52:00 +01:00
committed by GitHub

View File

@@ -88,6 +88,9 @@ func runAWS(args []string) {
InstanceType: aws.String(machine),
MinCount: aws.Int64(1),
MaxCount: aws.Int64(1),
Placement: &ec2.Placement{
AvailabilityZone: aws.String(zone),
},
}
runResult, err := compute.RunInstances(params)
if err != nil {