sparse-intern-71089
02/09/2023, 10:22 PMsteep-toddler-94095
02/10/2023, 12:30 AMpolicyname
in your JSON object.
The documentation doesn't delve very deep into using external data or more complex configurations beyond simple key/values.i think this is on purpose. the best way to retrieve outside data depends on your specific situation, and since you're given the full power of a general purpose language, there's a lot of options. In your specific case, where is the "source of truth" for this configuration data you want to pass into Pulumi?
rhythmic-receptionist-62263
02/10/2023, 12:53 AMsteep-toddler-94095
02/10/2023, 1:06 AMjson.load
f = open("./path/to/yourData.json")
policySet = json.load(f)
...
steep-toddler-94095
02/10/2023, 1:06 AMrhythmic-receptionist-62263
02/10/2023, 2:38 AM