George Kraft
2018-06-15 17:57:41 UTC
Hey folks,
Is there a way to assign units or machines to specific availability zones
on EC2 when deploying from a bundle?
I see there's a way to do it for standalone machines/units with either of
the following:
juju add-machine zone=us-east-1c
juju deploy ubuntu --to zone=us-east-1c
But I'm having trouble finding any way to do it in a bundle. For example, I
can't use the above placement directive in a bundle:
$ cat test.yaml
services:
ubuntu:
charm: "cs:ubuntu"
num_units: 1
to:
- "zone=us-east-1c"
$ juju deploy ./test.yaml
ERROR cannot deploy bundle: the provided bundle has the following errors:
invalid placement syntax "zone=us-east-1c"
Anyone know if there's a way to do it?
Thanks,
George Kraft
Is there a way to assign units or machines to specific availability zones
on EC2 when deploying from a bundle?
I see there's a way to do it for standalone machines/units with either of
the following:
juju add-machine zone=us-east-1c
juju deploy ubuntu --to zone=us-east-1c
But I'm having trouble finding any way to do it in a bundle. For example, I
can't use the above placement directive in a bundle:
$ cat test.yaml
services:
ubuntu:
charm: "cs:ubuntu"
num_units: 1
to:
- "zone=us-east-1c"
$ juju deploy ./test.yaml
ERROR cannot deploy bundle: the provided bundle has the following errors:
invalid placement syntax "zone=us-east-1c"
Anyone know if there's a way to do it?
Thanks,
George Kraft