I want to use AWS Container Insights in a kubernet...
# general
m
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
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
Thanks that helps.