sparse-state-34229
05/27/2020, 6:36 AMsparse-state-34229
05/27/2020, 6:36 AMcrooked-memory-97998
05/27/2020, 6:37 AMsparse-state-34229
05/27/2020, 6:37 AMself.vpc.id
is the id attribute of a pulumi_aws.ec2.Vpc
crooked-memory-97998
05/27/2020, 6:38 AMbland-lamp-16797
05/27/2020, 7:55 AMoutput
. I'm glad I'm not alone 🤞crooked-memory-97998
05/28/2020, 1:32 PMcrooked-memory-97998
05/28/2020, 1:32 PMgreen-school-95910
05/28/2020, 1:36 PMcrooked-memory-97998
05/28/2020, 1:37 PMgreen-school-95910
05/28/2020, 1:40 PMcrooked-memory-97998
05/28/2020, 1:41 PMgreen-school-95910
05/28/2020, 1:41 PMgreen-school-95910
05/28/2020, 1:43 PMstr.join
for example is a bit beyond reach as it's a method of the delimiter not the values (which would be the outputs)crooked-memory-97998
05/28/2020, 2:41 PMlemon-agent-27707
05/28/2020, 4:18 PMsparse-state-34229
05/28/2020, 4:59 PMbland-lamp-16797
05/30/2020, 7:17 PMenv_domain = top_domain.apply(lambda c: str(f"{functions.get_project_env(pulumi.get_stack())}.{c}"))
I need to copy this top_domain.apply()
function to all across my code and if I have huge project this can be be big pain 😞sparse-state-34229
05/30/2020, 7:24 PMsparse-state-34229
05/30/2020, 7:24 PMsparse-state-34229
05/30/2020, 7:24 PMbland-lamp-16797
05/30/2020, 7:32 PMsparse-state-34229
05/30/2020, 7:33 PMincalculable-dream-27508
06/01/2020, 12:35 PMimport pulumi
import pulumi_openstack as openstack
https://www.pulumi.com/docs/reference/pkg/openstack/compute/instance/ gives me something like
instance = openstack.compute.instance("some_name", flavor_name="1C-2G", image_name="some image", networks=[network_id_goes_here])
and I'm having issues with network_id_goes_here
.
First I tried according to https://www.pulumi.com/docs/reference/pkg/openstack/networking/network/
our_int_net = "openstack.networking.Network("Our Project Internal Network")
but then pulumi preview
wanted to create such network.
I tried the other syntax, guessing somewhat
openstack.networking.get('our_int_net', 'uuid_from_openstack_interface')
but that threw AttributeError: module 'pulumi_openstack.networking' has no attribute 'get'
at me.sparse-state-34229
06/01/2020, 4:52 PMincalculable-dream-27508
06/01/2020, 5:36 PMsparse-state-34229
06/01/2020, 5:56 PMopenstack.networking.Network.get()
or somethingincalculable-dream-27508
06/01/2020, 6:14 PMmy_net = openstack.networking.Network.get('my_net_name', 'uuid_from_openstack')
and then
instance = openstack.compute.Instance("name", networks=[my_net])
(shortened) complains about
Instance resource 'name' has a problem: network.0: expected object, got string
incalculable-dream-27508
06/01/2020, 6:15 PMinstance = openstack.compute.Instance("name", networks=[openstack.networking.Network.get('my_net_name', 'uuid_from_openstack')])
sparse-state-34229
06/01/2020, 6:18 PM