stocky-spoon-28903
06/14/2019, 3:07 PMpulumi.export("public_subnet_ids", [sn.id for sn in self.public_subnets])
for examplecolossal-room-15708
06/22/2019, 10:53 AMrequire
into my index.js
.
Does the same work with python programs so I can just import
them into __main__.py
?little-river-49422
06/22/2019, 12:50 PMstocky-spoon-28903
06/22/2019, 2:21 PMstocky-spoon-28903
06/22/2019, 2:21 PMpulumi-aws-vpc
library to have python support, but haven’t quite finished yet:stocky-spoon-28903
06/22/2019, 2:21 PMstocky-spoon-28903
06/22/2019, 2:22 PMcolossal-room-15708
06/23/2019, 2:21 AMcolossal-room-15708
06/23/2019, 3:00 AMcolossal-room-15708
06/23/2019, 3:01 AMcolossal-room-15708
06/23/2019, 4:36 AMparameters={
"bastionHostName": "%s-bastion" % (location),
"publicIpAddressName": self.pip.name,
"location": location,
"bastionServicesVnetName": vnet_name,
"bastionServicesSubnetName": self.subnet.name
}
colossal-room-15708
06/23/2019, 4:36 AMcolossal-room-15708
06/23/2019, 4:37 AMlocation
in both cases is an input param to the component, which is an output from a resource outside of this componentcolossal-room-15708
06/23/2019, 4:37 AM.apply()
, but to me, not being super deep into python, it seems strange that it works in one, but not the other.colossal-room-15708
06/23/2019, 4:39 AM"bastionHostName": location.apply(lambda location: location + "-bastion"),
fixed itcolossal-room-15708
06/23/2019, 4:40 AMbillowy-laptop-45963
06/25/2019, 8:05 PMbillowy-laptop-45963
06/26/2019, 5:41 PMbrave-angle-33257
06/27/2019, 3:45 PMbrave-angle-33257
06/27/2019, 3:45 PMlittle-river-49422
06/27/2019, 9:09 PMhigh-translator-22614
07/02/2019, 8:18 PMhigh-translator-22614
07/02/2019, 8:19 PMComponentResource
spawn its sub-resources in a Task
?high-translator-22614
07/02/2019, 8:21 PMroute53.get_zone()
returns an awaitable, not an Output
, so i'm having to write a bunch of utility stuff to manage the async flow while still keeping the structural definitions syncronous)high-translator-22614
07/02/2019, 9:29 PMhigh-translator-22614
07/02/2019, 11:31 PMhigh-translator-22614
07/03/2019, 3:55 PMComponentResource
in a coroutine wrapped in a Task
and pulumi just hungbright-orange-69401
07/04/2019, 8:22 AMhigh-translator-22614
07/05/2019, 1:20 AMFileArchive
? I can't give it a zip (created by 7-zip) or a directoryhigh-translator-22614
07/05/2019, 1:25 AMAssetArchive
says "expected an archive, but source is not an archive"high-translator-22614
07/05/2019, 1:25 AMAssetArchive
says "expected an archive, but source is not an archive"