sparse-intern-71089
03/23/2020, 12:02 PMtall-librarian-49374
03/23/2020, 1:37 PMbig-restaurant-51338
03/23/2020, 1:38 PMbig-restaurant-51338
03/23/2020, 2:00 PMpulumi.export("ip", compute.network_interfaces[0]['accessConfigs'][0]['natIp'])
. If the instance was already created (in a previous run) the code works just finebig-restaurant-51338
03/23/2020, 2:20 PMbig-restaurant-51338
03/23/2020, 2:20 PMpulumi.export("compute_ext_ip", compute.network_interfaces.apply(lambda a: a[0].get('accessConfigs')[0].get('natIp')))
pulumi.export("compute_int_ip", compute.network_interfaces.apply(lambda a: a[0].get('networkIp')))