Question:
I’m deploying an Amazon Connect instance with an attached contact flow, following this documentation: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/connect_contact_flowMy contact flow is stored in a file, so I’m using the following:
…
the value I would like to substitute into the json file at <lambda function arn> before the contact flow is created is accessible at
Thanks.
Answer:
If you really want to usefilename
instead of content
, you have to write the rendered template to some temporary file using local_file.But using
content
with templatefile directly for that would probably be easier. For that you would have to convert your flows/contact_flow.json
into a template format:If you have better answer, please add a comment about this, thank you!