https://pulumi.com logo
c

colossal-room-15708

03/30/2020, 6:03 AM
Is there now a way to have complex values in the config file? i.e.
subnets = [('AzureBastionSubnet', '10.2.1.0/27'), ('GatewaySubnet', '10.2.1.32/27')]
I'd like to move this out of the code into config
e

enough-oil-63049

03/30/2020, 6:16 AM
I've also been looking to do this exact thing! It would allow me to generalise the network configuration in azure-py-virtual-data-center
s

sparse-state-34229

03/30/2020, 7:05 AM
any reason you don’t want to use a hash/dict?
I assume you mean the stack config
c

clean-eve-27532

03/30/2020, 8:37 AM
We're doing something like this https://gist.github.com/harrymitchinson/98ca22e90f5a86d365f22601cc5dcc37 to achieve a similar behaviour for our nginx-ingress deployments
s

sparse-state-34229

03/30/2020, 8:49 AM
yeah same
c

colossal-room-15708

03/31/2020, 12:03 AM
Is what @clean-eve-27532 proposes here the recommended way by the Pulumi folks?
s

sparse-state-34229

03/31/2020, 1:08 AM
@colossal-room-15708 if you use the CLI to set variables, it will use this structure