flaky-arm-38472
09/21/2022, 3:58 AM"template_file" "userdata" {}
resource on Pulumi , specifically to use an userdata.sh
file that contains the user data for an EC2 instance, but inside this file I want to extrapolate some variables from my program. In Terrafrom one could do:
data "template_file" "userdata" {
template = file("${path.module}/userdata.sh")
vars = {
env = "dev"
}
And then on my userdata.sh
file just reference the variable:
#!/bin/bash -xe
MYENV=${env}
Something similar exist on Pulumi or do I have to make a go file to store the user data and do the replacement over there?