https://pulumi.com logo
#general
Title
# general
m

mammoth-caravan-51104

09/01/2019, 11:52 AM
I want to use AWS Container Insights in a kubernetes cluster. AWS provides config yaml file. However there are some placeholders that needs to be replaced with cluster name and region. I was thinking about writing a simple async function to get the file and replace placeholders. I'm lost with types, because ConfigGroup yaml: doesn't accept a Promise. Any hints how to handle that?
e

elegant-window-55250

09/01/2019, 2:08 PM
You can use
.apply
for most of it. Ex.
template: pulumi.all[clusterName, region]).apply([clusterName, region] => ({ ... })
You can find more about this in Pulumi Programming Mode: https://www.pulumi.com/docs/intro/concepts/programming-model/
👍 1
m

mammoth-caravan-51104

09/01/2019, 5:52 PM
Thanks that helps.