From 1c10b612edb3eb098fe322ceac556e14fedacd2d Mon Sep 17 00:00:00 2001 From: Simao Gomes Viana Date: Wed, 14 Aug 2024 09:35:53 +0200 Subject: [PATCH] Regenerate documentation --- docs/resources/image.md | 3 ++- examples/main.tf | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/resources/image.md b/docs/resources/image.md index db19b29..da32865 100644 --- a/docs/resources/image.md +++ b/docs/resources/image.md @@ -24,8 +24,9 @@ description: |- - `force` (Boolean) Force overwriting existing images - `ignore_environment` (Boolean) Prevents passing all environment variables of the provider through to Packer - `name` (String) Name of this build. This value is not passed to Packer. +- `sensitive_variables` (Dynamic, Sensitive) Sensitive variables to pass to Packer (does the same as variables, but makes sure Terraform knows these values are sensitive) - `triggers` (Map of String) Values that, when changed, trigger an update of this resource -- `variables` (Map of String) Variables to pass to Packer +- `variables` (Dynamic) Variables to pass to Packer ### Read-Only diff --git a/examples/main.tf b/examples/main.tf index b2b5d64..df114b7 100644 --- a/examples/main.tf +++ b/examples/main.tf @@ -20,14 +20,14 @@ data "packer_files" "files2" { resource "packer_image" "image1" { file = data.packer_files.files1.file variables = { - test_var1 = "test 1" - test_var2 = "test 2" - test_int = 420 + test_var1 = "test 1" + test_var2 = "test 2" + test_int = 420 test_float = 3.1416 } sensitive_variables = { test_big_float = 1.234e100 - test_bool = true + test_bool = true test_list = tolist([ "element 1", "element 2" ]) @@ -44,7 +44,7 @@ resource "random_string" "random" { special = false lower = true upper = true - number = true + numeric = true } resource "packer_image" "image2" {