Skip to content

support templatefile #156

@peetasan

Description

@peetasan

I'd like to use a file or templatefile function in my terraform code but the referenced file is not available for the apply step. How could I add my template(file)?

resource "some_resource" "my_resource" {
  config_json = templatefile("config.json", { uid = other_resource.arbitrary_resource.uid })
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions