Commit Graph

7118 Commits

Author SHA1 Message Date
Alisdair McDiarmid
4960e6aeba
Merge pull request #31634 from hashicorp/alisdair/optional-object-attribute-explicit-null
typeexpr: Replace null attr values with defaults
2022-08-17 08:54:21 -04:00
kmoe
56a1e0d1c6
allow cross-package move statements (#31556) 2022-08-16 16:52:57 +02:00
Martin Atkins
22633a280d website: Optional object attributes handling of null
Previously we didn't describe the interaction between default values and
callers explicitly passing "null".

We treat an explicit null as the same as omitting the attribute when
applying defaults, because that then allows callers to use the typical
pattern for conditional assignment, using explicit null as a fallback
to the module's defined default without having to duplicate that default:
    example = var.foo ? "hello" : null
2022-08-15 14:45:06 -07:00
Alisdair McDiarmid
27966044ba
Merge pull request #28191 from zimbatm/terraform-fmt-manyargs
command/fmt: support formatting multiple files
2022-08-12 13:53:23 -04:00
Martin Atkins
2aff67857f website: Remove the legacy v0.11 language documentation
We've been holding on to this snapshot of the old docs from the v0.11
branch ever since the v0.12 release as a courtesy to folks who are still
using Terraform v0.11, since until now we didn't have any way to serve
older versions' docs on the website alongside the current aside from
snapshotting it forward in this way.

However, our website framework now supports publishing multiple versions
at the same time and so the final resting place for these v0.11 docs will
be in the "v1.1" branch, whose content is serving as the documentation
for the "v1.1 and earlier" version selection on the website. While it does
still feel a little awkward to have v0.11 be a subsection of the v1.1
docs, this is at least more honest in that v0.11 _is_ earlier than v1.1,
whereas it's confusing and weird for it to appear under the "v1.2.x"
option and the other versions that will appear later.

In order to avoid breaking incoming links to the old docs we will deploy
this in conjunction with some additional redirects managed by the top-level
terraform-website repository, which will send all paths with the prefix
/language/configuration-0-11 to the equivalent path under
/language/v1.1.x/configuration-0-11 . That redirect rule must exist
outside of this repository because it's a bridge _between_ versions of
the website in this repository, rather than a link to other content within
the same version.
2022-08-11 09:23:38 -07:00
Laura Pacilio
748b42715a
Update website/README.md
Co-authored-by: Matthew Garrell <69917312+mgarrell777@users.noreply.github.com>
2022-08-09 12:18:58 -04:00
Laura Pacilio
0e6635b270
Update README.md 2022-08-09 11:47:32 -04:00
Laura Pacilio
96adb97be0
Update README.md 2022-08-09 11:46:48 -04:00
Laura Pacilio
1aa9f49362
Update README.md 2022-08-09 11:45:47 -04:00
Laura Pacilio
4e0c71777c
Update README.md 2022-08-09 11:11:09 -04:00
Laura Pacilio
19a7527bfe
Update docs README backporting instructions 2022-08-09 11:04:58 -04:00
Aleksandr Melnikov
05944cc0e2
Update fmt.mdx (#31553)
* Update fmt.mdx

Fix insufficient explanation of "-check" option.

* Apply suggestions from code review

Co-authored-by: kmoe <5575356+kmoe@users.noreply.github.com>

Co-authored-by: kmoe <5575356+kmoe@users.noreply.github.com>
2022-08-08 10:04:29 +01:00
zimbatm
7a9ccc03b2
command/fmt: support formatting multiple files
All the code infrastructure was there to support formatting multiple
files already.

This makes `terraform fmt` more flexible and also compliant with the
[treefmt formatter
spec](https://numtide.github.io/treefmt/docs/formatters-spec.html)
2022-08-07 15:02:55 +02:00
Kevin Wang
fbda4382f3
chore: delete /guides files (#31560) 2022-08-05 10:26:48 -04:00
Kevin Wang
f3ef0d9df1
chore: remove /docs (#31558) 2022-08-05 10:26:17 -04:00
James Bardin
a857084dfe
Merge pull request #31562 from hashicorp/jbardin/jsonplan-docs
update json plan docs with drift output
2022-08-02 17:35:46 -04:00
James Bardin
a0b66c87cc
Update website/docs/internals/json-format.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-08-02 17:35:30 -04:00
James Bardin
08fed6e296
Update website/docs/internals/json-format.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-08-02 17:35:19 -04:00
James Bardin
1e79f17ed2
Update website/docs/internals/json-format.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-08-02 17:35:09 -04:00
James Bardin
e58d74c0ca update json plan docs with drift output
Add "resource_drift" and "relevant_attributes" to the json plan
documentation.
2022-08-02 16:35:30 -04:00
Laura Pacilio
467b592b60
Update README.md 2022-08-02 14:09:08 -04:00
Laura Pacilio
38fe6f761d
Merge pull request #31550 from hashicorp/docs-readme-updates-versioned-docs
Update Docs README to support versioned documentation
2022-08-02 14:08:02 -04:00
Laura Pacilio
aecbaecff5
Merge pull request #31545 from hashicorp/module-invocation-warning
Add note about module.path and local module sources
2022-08-01 17:19:07 -04:00
Laura Pacilio
7c7433b79f
Update README.md 2022-08-01 17:05:11 -04:00
Laura Pacilio
2b0e14db52
Merge pull request #31460 from fnickels/4th-alternate-mirror-directory-fix
Detailing `-chdir` behavior with `terraform.d/plugin` folders
2022-07-29 17:53:15 -04:00
Laura Pacilio
f6aeecb592
Update website/docs/language/expressions/references.mdx 2022-07-29 16:52:58 -04:00
Laura Pacilio
e574234efc Add note about module.path and local module sources 2022-07-29 15:24:04 -04:00
sebhcp
c625fe749b reword sentence 2022-07-27 14:03:51 -05:00
Francis Nickels III
194afe0872
Update website/docs/cli/config/config-file.mdx
lgtm

Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-26 17:02:44 -07:00
sebhcp
28ae64c38b fix subject-verb agreement 2022-07-22 12:11:28 -05:00
Francis Nickels
9a5d909931 doc change to match behavior 2022-07-18 09:10:10 -07:00
Alisdair McDiarmid
d3284bdc4e
Merge pull request #31220 from FooBartn/string-starts-ends-with-funcs
feat: add startswith and endswith funcs
2022-07-14 13:13:04 -04:00
Alisdair McDiarmid
7190898501
Apply suggestions from code review
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-14 13:03:53 -04:00
Joshua Barton
0dfcbe6d0c
docs: Add recommended language changes
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-14 11:06:35 -05:00
Sarah French
5e000c2741
Merge pull request #31398 from hashicorp/fix-glossary-table-contents
Fix links in Glossary page's table of contents
2022-07-12 15:59:26 +01:00
Tom Bamford
dc1f5bccf8
Merge pull request #31070 from hashicorp/f/removing-adal-auth
backend/azurerm: exclusively using Microsoft Graph/MSAL and removing Azure Active Directory Graph/ADAL
2022-07-12 12:18:29 +01:00
Laura Pacilio
06baea9ae1
Merge pull request #31286 from BrianSidebotham/update_docs_for_30072
Fixes #30072 - Update docs to show single file usage
2022-07-11 11:07:19 -04:00
Brian Sidebotham
26e770321f Update website/docs/cli/commands/fmt.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-08 09:19:50 -07:00
Brian Sidebotham
7dd199cbd0 Fixes #30072 - Update documentation to show that the old DIR option can target a single file instead 2022-07-08 09:19:50 -07:00
Chris Stella
9e3535be9c
Added link to "hostname" argument
There should be a link to the argument being referenced for clarity and completeness.
2022-07-07 23:02:45 -07:00
Sarah French
892100a4cf
Update glossary.mdx 2022-07-07 14:46:56 +01:00
Sarah French
a8738731ba
Update glossary.mdx 2022-07-07 14:42:27 +01:00
Laura Pacilio
aeefde7428
Merge pull request #31364 from timgates42/bugfix_typos
docs: Fix a few typos
2022-07-06 17:03:09 -04:00
Joshua Barton
2278d30857 docs: add documentation for starts and endswith 2022-07-06 10:56:32 -05:00
Laura Pacilio
ccb466f3b1
Update README.md 2022-07-05 18:02:19 -04:00
Craig Wright
e3daf4c2a6
Merge pull request #31354 from chtitux/patch-1
Update docs/cli/commands/init: add backtick to readonly value
2022-07-05 14:56:19 -07:00
Laura Pacilio
2daee48675
Merge pull request #31351 from hashicorp/update-format-function-page
Update format function to mention list, map, and null types
2022-07-05 17:45:11 -04:00
Laura Pacilio
7a11e87631 Add example! 2022-07-05 17:32:39 -04:00
Laura Pacilio
15b59fd6c9 Reorder page items and add note about available types to specific verb descriptions 2022-07-05 17:25:08 -04:00
Laura Pacilio
8fac3d63d8
Merge pull request #31310 from ianmrose-cm/main
Add shell explanation to remote-exec `inline` argument documentation.
2022-07-05 10:47:12 -04:00