let say I have this :-
variable "url" {
value = "https://sqs.eu-central-1.amazonaws.com/11111111/my_queue.fifo"
}
provisioner "local-exec" {
command = <<-EOT
sed -i "s/URL.*:.*/URL: $url/g" "./test.yaml"
EOT
}
while the ./test.yaml file would be:
kind: ConfigMap
apiVersion: v1
metadata:
name: test
namespace: default
data:
URL: ""
I wonder how to get my URL: ""
element replaced with an url variable from terraform ? I've tried many times but it returned me regex error. the escaping hell :cry