gorgeous-egg-16927
02/08/2019, 8:43 PMlittle-river-49422
02/08/2019, 8:44 PMgorgeous-egg-16927
02/08/2019, 8:45 PMgorgeous-egg-16927
02/08/2019, 8:46 PMcreamy-potato-29402
02/08/2019, 8:47 PMcreamy-potato-29402
02/08/2019, 8:47 PMcreamy-potato-29402
02/08/2019, 8:48 PMpulumi refresh
can also be smarter.creamy-potato-29402
02/08/2019, 8:48 PMlittle-river-49422
02/08/2019, 8:48 PMpulumi refresh
is kinda frustrating. i dont think it really helps. at least it didnt help me. or I dont understand how it workslittle-river-49422
02/08/2019, 8:49 PMgorgeous-egg-16927
02/08/2019, 8:50 PMgorgeous-egg-16927
02/08/2019, 8:51 PMlittle-river-49422
02/08/2019, 9:44 PMlittle-river-49422
02/09/2019, 9:54 AMbland-lamp-97030
02/09/2019, 11:22 PMbland-lamp-97030
02/09/2019, 11:22 PMbland-lamp-97030
02/09/2019, 11:22 PMsubnet = ec2.Subnet(
subnet_name,
vpc_id=vpc.id,
availability_zone=pulumi_aws.get_availability_zones().names[num],
cidr_block=subnet_ranges[num],
map_public_ip_on_launch=True,
tags={"Name": subnet_name, **default_tags},
)
bland-lamp-97030
02/09/2019, 11:23 PMget_availability_zones
is defined as an async def, but I haven't got the ability to await it from a standard "run everything in main" scriptbland-lamp-97030
02/09/2019, 11:23 PMbland-lamp-97030
02/09/2019, 11:24 PMlittle-river-49422
02/10/2019, 7:15 AMasync def get_aks_credentials():
result = await get_kubernetes_cluster(name=gen_name('aks'),
resource_group_name=gen_name('rg')
)
return result.kube_config_raw
k8s = Provider("app_provider", kubeconfig=get_aks_credentials())
at least this is working for melittle-river-49422
02/11/2019, 9:25 AMstocky-spoon-28903
02/11/2019, 3:59 PMstocky-spoon-28903
02/11/2019, 4:00 PMlittle-river-49422
02/11/2019, 9:41 PMstocky-spoon-28903
02/11/2019, 9:46 PMstocky-spoon-28903
02/11/2019, 9:47 PMstocky-spoon-28903
02/11/2019, 9:48 PMstocky-spoon-28903
02/11/2019, 9:54 PMbland-lamp-97030
02/11/2019, 10:32 PMaws_pulumi.ec2.Subnet
? pulumi.get_availability_zones()
is an async function, but my pulumi program is just free code within the __main__.py
file