Hello. What would be the syntax for setting up a n...
# python
i
Hello. What would be the syntax for setting up a new instance in an existing OpenStack project, with an existing network? Wtih header like
Copy code
import pulumi
import pulumi_openstack as openstack
https://www.pulumi.com/docs/reference/pkg/openstack/compute/instance/ gives me something like
Copy code
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/
Copy code
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
Copy code
openstack.networking.get('our_int_net', 'uuid_from_openstack_interface')
but that threw
AttributeError: module 'pulumi_openstack.networking' has no attribute 'get'
at me.