sparse-intern-71089
05/31/2021, 9:58 AMsticky-bear-14421
05/31/2021, 10:05 AMvpc_id = vpc.id.apply(lambda x: x)
create_transitgateway_attachment(tgw_config_paramenters, vpc_id, tags)
Same errorsticky-bear-14421
05/31/2021, 10:11 AMvpc_id = vpc.id.apply(lambda x: x)
print(vpc id after apply(): ", vpc_id)
create_transit_gateway_attachment(tgw_config_parameters, vpc_id, tags)
Leads to the astonishing output of:
vpc id after apply(): <pulumi.output.Output object at 0x7fa5c8475400>
error: Program failed with an unhandled exception:
error: Traceback (most recent call last):
<snip>
Exception: invoke of aws:ec2/getSubnetIds:getSubnetIds failed: Missing required argument: The argument "vpc_id" is required, but no definition was found. ()
The error still exists ..hallowed-animal-47023
05/31/2021, 11:44 AMhallowed-animal-47023
05/31/2021, 11:45 AMsticky-bear-14421
05/31/2021, 11:45 AMsticky-bear-14421
05/31/2021, 11:45 AMhallowed-animal-47023
05/31/2021, 11:46 AMsticky-bear-14421
05/31/2021, 11:48 AMsticky-bear-14421
05/31/2021, 12:33 PMpurple-plumber-90981
06/01/2021, 6:15 AMsticky-bear-14421
06/01/2021, 7:20 AMsticky-bear-14421
06/01/2021, 7:22 AMsticky-bear-14421
06/01/2021, 7:24 AMprivate_networks=[]
and then put these as parameter in my transitgateway() function, but the code base has a second use/intent as an example for new pulumi users in our organisation. So I put the get_subnet_ids() call in this as an example for querying resources from the api with the use of proper tagging.sticky-bear-14421
06/01/2021, 7:27 AMvpc_id = vpc.id.apply(lambda x: x)
create_transitgateway_attachment(tgw_config_paramenters, vpc_id, private_networks, tags)
But other resources inside this function need the vpc.id aswell, so the concurrency problem would remain.purple-plumber-90981
06/01/2021, 7:28 AMpurple-plumber-90981
06/01/2021, 7:31 AMsticky-bear-14421
06/01/2021, 7:31 AMpurple-plumber-90981
06/01/2021, 7:32 AMpurple-plumber-90981
06/01/2021, 7:33 AMpurple-plumber-90981
06/01/2021, 7:33 AMpurple-plumber-90981
06/01/2021, 7:34 AMpurple-plumber-90981
06/01/2021, 7:34 AMsticky-bear-14421
06/01/2021, 7:35 AM