Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support templatefile #156

Open
peetasan opened this issue Sep 11, 2023 · 1 comment
Open

support templatefile #156

peetasan opened this issue Sep 11, 2023 · 1 comment

Comments

@peetasan
Copy link

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 })
}
@isaaguilar
Copy link
Collaborator

There is a spec.setup.resourceDownloads that will download files into the main module's path by default, or a path relative to the main module: http://tf.galleybytes.com/docs/references/v0.13.0/#ResourceDownload_v1beta1_tf.galleybytes.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants