Commit Graph

135 Commits

Author SHA1 Message Date
nemobis
6d0d9b8773 docs: Fix typo in sensitive.mdx (#3431)
Signed-off-by: nemobis <federico.leva@relexsolutions.com>
2025-10-30 15:11:44 -05:00
Martin Atkins
68fbe8d8d7 website: "element" function supports negative indices
We got this new functionality from an upgrade of the upstream cty library,
but we didn't update the docs to mention it.

The examples in this doc were also evidently generated with a much older
version of OpenTofu's predecessor, because the illustrated output was not
shown as a quoted string. The example output now matches how the current
version of "tofu console" would describe these results.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-10-28 15:11:26 -07:00
Martin Atkins
dc9bec611c website: Reorganize and tidy some lifecycle-related information
Over time the discussion about "lifecycle" blocks in the documentation
became confusing because the docs originally written for managed resource
lifecycle got partially generalized for resources of other modes and for
module calls, even though each of those has a completely different
lifecycle and thus a different set of lifecycle settings.

This is a first pass at trying to reorganize that so that the "lifecycle"
page is really just an index of all of the different kinds of lifecycle
block that exist in the language, while the main documentation for each
use of that block type now belongs with the documentation of the block
it's nested within.

While working on this I also found that there was some duplication inside
the "data sources" page where the same information was described multiple
times, and a few other cases where things had become inconsistent over
time. This also includes a little extra content to try to clarify the
difference between managed, data, and ephemeral resources and to make it
explicit that the "Resources" section is focused only on managed resources
because that is the primary resource mode.

As usual there's lots more that could be done here -- this documentation
has gradually evolved over time and is full of weird quirks due to that
evolution -- but I decided to draw a line here so that the diff wouldn't
get too large.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-10-17 15:08:14 -07:00
Magicalcrow
4fbbea6f4b Fix typos in uuid and uuidv5 docs
Signed-off-by: Magicalcrow <simondiev@gmail.com>
2025-09-30 09:00:55 -07:00
Christian Mesh
60b268200c Add ephemeralasnull() function (#3154)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2025-09-10 07:45:23 -04:00
Martin Atkins
9a161adbe3 go.mod: Upgrade to Go 1.25 (#3166)
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-08-22 07:10:11 -04:00
Ilia Gogotchuri
2d9cef1f55 Functions: decode_tfvars, encode_tfvars, encode_expr on bult-in provider for compatibility (#2306)
Signed-off-by: Ilia Gogotchuri <ilia.gogotchuri0@gmail.com>
Co-authored-by: Oleksandr Levchenkov <ollevche@gmail.com>
2024-12-25 13:21:59 +04:00
Nathan Baulch
ea558d9d4b Fix typos (#1905)
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
2024-08-29 13:20:33 -04:00
Syasusu
8c0d89bec0 fix inconsistent sidebar title of functions (#1906)
Signed-off-by: Syasusu <syasusu@163.com>
2024-08-12 16:23:54 +02:00
Oleksandr Levchenkov
adcdec9525 Update textencodebase64 and textdecodebase64 documentation (#1634)
Signed-off-by: Alexis Saettler <alexis@saettler.org>
Co-authored-by: Alexis Saettler <alexis@saettler.org>
2024-05-09 06:41:23 -04:00
Janos
aea329deed Docs cleanup before 1.7 release (#1573)
Signed-off-by: Janos <86970079+janosdebugs@users.noreply.github.com>
2024-04-30 11:55:47 +02:00
Janos
a15a6c9657 Versioned docs: replacing docs links with relative variants (#1537)
Signed-off-by: Janos <86970079+janosdebugs@users.noreply.github.com>
Signed-off-by: Damian Stasik <920747+damianstasik@users.noreply.github.com>
Signed-off-by: Roman Grinovski <roman.grinovski@gmail.com>
Co-authored-by: Damian Stasik <920747+damianstasik@users.noreply.github.com>
Co-authored-by: Roman Grinovski <roman.grinovski@gmail.com>
2024-04-24 13:24:30 +02:00
Christian Mesh
d39b076cf0 Update provider functions documentation (#1512)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-04-18 10:39:31 -04:00
Christian Mesh
b868012192 Integrate provider functions (#1439)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-04-10 08:04:08 -04:00
Jonas Bakken
207a5e20c8 docs: update nonsensitive docs to not show error (#1391)
Signed-off-by: Jonas Bakken <jonasbakken@protonmail.com>
2024-03-29 10:29:02 -04:00
Zhiwei
6dcc39e107 doc: Add and Improve Security Notices for filemd5, md5, and filesha1 functions (#1443)
Signed-off-by: Zhiwei Liang <zhi.wei.liang@outlook.com>
2024-03-28 11:45:13 -04:00
Jonas Bakken
fc5ffe4edd feat: implement issensitive function (#1381)
Signed-off-by: Jonas Bakken <jonasbakken@protonmail.com>
2024-03-13 11:22:58 +01:00
Christian Mesh
b51396fed5 Allow for templatefile recursion (up to 1024 depth default) (#1250)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Janos <86970079+janosdebugs@users.noreply.github.com>
2024-03-11 10:00:06 -04:00
Pooria Ghaedi
b5889b10eb Feat: urldecode function #1234 (#1283)
Signed-off-by: pooriaghaedi <pooria.ghaedi@gmail.com>
2024-03-01 15:09:45 +00:00
Sanskruti Shahu
835dcb8121 Added templatestring function similar to templatefile (#1223)
Signed-off-by: sanskruti-shahu <sanskruti.shahu@harness.io>
Signed-off-by: Sanskruti Shahu <76054960+sanskruti-shahu@users.noreply.github.com>
Co-authored-by: James Humphries <James@james-humphries.co.uk>
2024-02-28 09:56:05 -05:00
Marcin Wyszynski
b524b6140c Implement cidrcontains function (#366) 2024-01-11 23:33:55 +01:00
Kuba Martin
47c34d05e2 Refactor base64gunzip function to be more in line with other functions. (#1077)
Signed-off-by: Jakub Martin <kubam@spacelift.io>
2024-01-08 15:05:20 +01:00
Kuba Martin
064f150047 Improve changelog and docs message for nonsensitive function fixes. (#1055)
Signed-off-by: Jakub Martin <kubam@spacelift.io>
2023-12-27 15:47:27 +01:00
Joao C Costa
28e6bce155 nonsensitive no longer produces error when applied to values that are not sensitive (#369)
Signed-off-by: Joao C Costa <joao.costa@kit-ar.com>
2023-12-27 15:16:13 +01:00
l-with
ae5ec54458 implement gunzipbase64 (#799)
Signed-off-by: Lars With <lars@with.de>
2023-12-21 11:16:15 -05:00
Christian Mesh
b186fd3912 Docs update, remove additional terraform references (#1046)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Janos <86970079+janosdebugs@users.noreply.github.com>
2023-12-21 08:58:23 -05:00
Christian Mesh
abd324ea7c Revert "Fixes #898: Replace hashicorp and terraform references" (#995) 2023-12-11 15:10:03 -05:00
Janos
15bef1428a Fixes #898: Replace hashicorp and terraform references (#973)
Signed-off-by: Janos Bonic <86970079+janosdebugs@users.noreply.github.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
2023-12-08 08:03:09 -05:00
Elbaz
01cf4cda3f Update placeholderplaceholderplaceholder occurrences to our doc site (#684) 2023-10-10 12:54:03 +03:00
Julien Levasseur
4c0bda5386 Rename website to OpenTofu (#516)
Co-authored-by: Damian Stasik <920747+damianstasik@users.noreply.github.com>
Co-authored-by: Roman Grinovski <roman.grinovski@gmail.com>
2023-09-21 10:57:47 +01:00
Damian Stasik
4cab6e72b4 Replace legacy admonition syntax (#432) 2023-09-18 13:56:28 +02:00
Damian Stasik
072d1dce56 Clean up frontmatter sections in the docs (#421) 2023-09-15 16:03:23 +02:00
Roman Grinovski
a4f9c63288 Change docs links: /opentf-> /docs (#367)
Signed-off-by: Roman Grinovski <roman.grinovski@gmail.com>
2023-09-15 14:10:27 +02:00
James Humphries
acc913a77e Added eslint + remark-lint to our documentation pages (#249)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2023-09-06 17:16:54 +01:00
Marcin Białoń
554f303899 Update website/docs/language/functions (#227)
Signed-off-by: Marcin Białoń <mbialon@spacelift.io>
2023-08-30 14:59:37 +02:00
RLRabinowitz
689aff3c82 Change terraform_io resources in mdx files to placeholderplaceholderplaceholder_io 2023-08-27 15:11:47 +03:00
RLRabinowitz
cf1640bc10 Change terraform doc website links to be a placeholder for now 2023-08-27 15:11:45 +03:00
Craig Wright
58fc822ec4 Update tostring.mdx 2023-07-31 10:37:00 -07:00
Craig Wright
e1148b3ad7 Update website/docs/language/functions/tostring.mdx
Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
2023-07-31 10:35:33 -07:00
Craig Wright
40dfd20dda Update tostring.mdx for null value conversion
Per https://github.com/hashicorp/terraform/issues/33603, updating the documentation to accurately reflect the current implementation.
2023-07-28 15:11:06 -07:00
Macaber
18655f1692 Update templatefile.mdx 2023-06-09 15:25:54 +08:00
Rose M Koron
374885addf Merge pull request #31977 from petoju/feature/fix-alternative
Fix regex pattern for more alternatives
2023-05-05 15:51:39 -07:00
Rose M Koron
6eee1ba44f Merge pull request #31920 from robpickerill/main
update setsubtract examples to include toset notation
2023-05-05 15:41:51 -07:00
Zac Clifton
3bb6a5896b Feat: Add strcontains function and documentation (#33069)
* add strcontains function and documentation
2023-04-26 20:41:32 +01:00
Liam Cervante
aae6990d38 Add native plantimestamp function to Terraform (#32980)
* add plantimestamp function

* documentation

* add missing links

* fix typo
2023-04-21 09:47:28 +02:00
Robert Hafner
dfbb9c2e10 website: templatefile variables are an object, not a map
Although maps and objects are similar, maps require that all values be of the same type while objects can allow different values to have their own type.

This function does not restrict itself to maps- the examples themselves include cases where both strings and lists are passed through, making this an object and not a map.
2023-04-05 15:36:22 -07:00
Craig Wright
d53cb81bed Merge pull request #32889 from fidelity/feature/doc-change 2023-03-21 15:31:34 -07:00
Middleton, Nathan
2213d91746 description feedback change 2023-03-21 16:46:20 +00:00
Jim Wisniewski
f395efdd83 Update documentation for compact function 2023-03-01 17:34:33 -05:00
Ashlee Boyer
32f7b8ebd0 Migrating links to new format 2023-02-23 12:55:56 -05:00