mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 01:59:07 +00:00
Merge pull request #2396 from dave-tucker/aws-placement
aws: Honour the zone variable when creating an instance
This commit is contained in:
commit
2cb045b571
@ -88,6 +88,9 @@ func runAWS(args []string) {
|
|||||||
InstanceType: aws.String(machine),
|
InstanceType: aws.String(machine),
|
||||||
MinCount: aws.Int64(1),
|
MinCount: aws.Int64(1),
|
||||||
MaxCount: aws.Int64(1),
|
MaxCount: aws.Int64(1),
|
||||||
|
Placement: &ec2.Placement{
|
||||||
|
AvailabilityZone: aws.String(zone),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
runResult, err := compute.RunInstances(params)
|
runResult, err := compute.RunInstances(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user