Commit Graph

7194 Commits

Author SHA1 Message Date
sebhcp
28ae64c38b fix subject-verb agreement 2022-07-22 12:11:28 -05:00
Laura Pacilio
3b79e792ae
Update website/docs/language/settings/backends/remote.mdx 2022-07-21 13:53:26 -04:00
Laura Pacilio
c3774292f1 More edits to Terraform Cloud settings page 2022-07-20 17:43:32 -04:00
Laura Pacilio
06ebe9ab59 Update links to point to CLI docs; make Language page clearer 2022-07-20 17:23:05 -04: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
Laura Pacilio
69ee6fb6c0
Update terraform-tools.mdx 2022-07-05 10:21:36 -04:00
Tim Gates
dce91cafb4
docs: Fix a few typos
There are small typos in:
- docs/planning-behaviors.md
- docs/resource-instance-change-lifecycle.md
- website/README.md

Fixes:
- Should read `exhaustive` rather than `exhastive`.
- Should read `representation` rather than `repesentation`.
- Should read `preferably` rather than `preferrably`.
- Should read `absence` rather than `absense`.
2022-07-02 09:14:05 +10:00
Ian Rosenbery
1e26403677
Update website/docs/language/resources/provisioners/remote-exec.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-01 14:11:33 -07:00
James Bardin
7b19acb7eb
Merge pull request #31350 from hashicorp/jbardin/deprecated-backend-docs
add deprecation notices to backends
2022-07-01 11:11:48 -04:00
James Bardin
8e8c93b0d5
Update website/docs/language/settings/backends/swift.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-01 11:11:26 -04:00
James Bardin
4e93e1c6f5
Update website/docs/language/settings/backends/manta.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-01 11:11:22 -04:00
James Bardin
65acbbd467
Update website/docs/language/settings/backends/etcdv3.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-01 11:11:16 -04:00
James Bardin
a96cf4cb98
Update website/docs/language/settings/backends/etcd.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-01 11:11:09 -04:00
James Bardin
94de72c638
Update website/docs/language/settings/backends/artifactory.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-01 11:11:04 -04:00
Théophile Helleboid - chtitux
53a9ac275a
Update docs/cli/commands/init: add backtick to readonly value 2022-07-01 10:54:03 +04:00
Laura Pacilio
0dfda6a6bd
Merge pull request #31348 from hashicorp/fix-apt-page
Update commands for new Ubuntu version
2022-06-30 17:58:09 -04:00
Laura Pacilio
d0bb3726cd formatting fix 2022-06-30 17:49:41 -04:00
Laura Pacilio
c7f2c03cc3
Update website/docs/cli/install/apt.mdx 2022-06-30 17:41:39 -04:00
Laura Pacilio
91d6c50ccc
Update website/docs/language/functions/format.mdx 2022-06-30 17:35:50 -04:00
Laura Pacilio
e90f9286c2
Update format function to mention list/map types 2022-06-30 17:28:59 -04:00
Laura Pacilio
2839aab709
Update website/docs/cli/install/apt.mdx
Co-authored-by: Robin Norwood <rnorwood@hashicorp.com>
2022-06-30 17:12:18 -04:00
Laura Pacilio
a2798da37b
Update website/docs/cli/install/apt.mdx
Co-authored-by: Robin Norwood <rnorwood@hashicorp.com>
2022-06-30 17:12:13 -04:00
James Bardin
7941b2fbdc add deprecation notices to backends 2022-06-30 16:46:12 -04:00
Laura Pacilio
831627cbe4 final formatting nits and language fixes 2022-06-30 16:13:03 -04:00
Laura Pacilio
bd54ae50a6 fix formatting 2022-06-30 15:46:06 -04:00
Laura Pacilio
add1e7f3ea Merge branch 'fix-apt-page' of github.com:hashicorp/terraform into fix-apt-page 2022-06-30 15:41:22 -04:00
Laura Pacilio
cb022818ee tiny nits 2022-06-30 15:40:48 -04:00
Laura Pacilio
d0664bce0e
Update website/docs/cli/install/apt.mdx 2022-06-30 15:37:54 -04:00
Laura Pacilio
c787d1c768
Update website/docs/cli/install/apt.mdx 2022-06-30 15:37:36 -04:00
Laura Pacilio
c112c858ee Update commands on page to match rel eng guidance 2022-06-30 15:33:23 -04:00
Laura Pacilio
f83c8e1d18
Merge pull request #31011 from dleser/patch-1
Added example with function argument expansion
2022-06-28 16:50:09 -04:00
ianmrose-cm
a52cf190a6 Update language according to review feedback. 2022-06-28 09:41:12 -07:00
Laura Pacilio
d175076e76
Merge pull request #29865 from hashicorp/laura-update-docs-readme
Update READMEs to help folks figure out how to successfully make docs
2022-06-27 15:48:11 -04:00
Laura Pacilio
5cb3dc9447
Merge pull request #31197 from hashicorp/update-plan-page
Update apply page for style, concision, and clarity
2022-06-27 15:40:11 -04:00
Laura Pacilio
997c851671
Update website/docs/cli/commands/apply.mdx
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
2022-06-27 15:22:53 -04:00
Laura Pacilio
af9c53e3ad
Update website/docs/cli/commands/apply.mdx
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
2022-06-27 15:22:36 -04:00
Laura Pacilio
08a14994d1
Update website/docs/cli/commands/apply.mdx
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
2022-06-27 15:22:26 -04:00
Laura Pacilio
352c55bf0b
Update website/docs/cli/commands/apply.mdx
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
2022-06-27 15:22:18 -04:00
Laura Pacilio
24c29fa6bb
Update website/README.md 2022-06-27 11:16:30 -04:00
Laura Pacilio
5338ad82d5
Update website/README.md 2022-06-27 11:15:36 -04:00
Laura Pacilio
238fe49cb5
Update website/README.md 2022-06-27 11:15:03 -04:00
Alan Szlosek Jr
ec4935ba5d
Clarify how the ~> version constraint operator works (#31298)
* Clarify how the ~> version contraint operator works

* add comma, clarify the actor

* verbiage tweak

* language cleanup from PR review

Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>

* fix line length

Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-06-27 11:13:14 -04:00
ianmrose-cm
35da1618ed Add shell explanation to remote-exec inline argument documentation.
The current implementation does not use the default shell for
the ssh user to execute inline commands, which can be somewhat
confusing to debug. Provide explicit documentation to explain this,
and documentation can be removed if ssh user default shell is supported.
2022-06-23 12:30:34 -07:00
Alisdair McDiarmid
479c71f93d
Merge pull request #31210 from hashicorp/update-optional-type-attributes
Edit type constraints docs for style and flow
2022-06-17 15:47:57 -04:00
Alisdair McDiarmid
8db2552b5f
Remove experiment from optional attrs example 2022-06-17 11:38:12 -04:00
Laura Pacilio
a864bf6b9e
Merge pull request #31105 from nvanthao/nvanthao/update-docs-implicit-provider
Add link to default provider configuration definition
2022-06-17 09:08:11 -04:00
Dirk Leser
ab93ef09ec
Readded the new example below the description 2022-06-17 14:42:52 +02:00
Dirk Leser
37d18f4229
functions/merge: Added expanation for example
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-06-17 14:32:02 +02:00
Laura Pacilio
66f6bb50ac
Merge pull request #30275 from Mukesh05/patch-1
Update purpose.mdx
2022-06-16 13:34:46 -04:00
Ansgar Mertens
6c4341e764 fix(docs): remove recommendation to wrap a set using toset() 2022-06-16 07:45:15 +00:00
Laura Pacilio
2e4b417e3c Add internals to the sidebar 2022-06-13 17:30:11 -04:00
Craig Wright
0db75574fc
Merge pull request #31227 from pyaillet/patch-1
Fix a wrong usage of sudo in debian install doc
2022-06-13 14:04:47 -07:00
Laura Pacilio
f6752c6cfa
Merge pull request #31204 from parkchoongho/patch-1
Update syntax.mdx
2022-06-13 11:20:41 -04:00
Laura Pacilio
5c43afcb0e
Merge pull request #31213 from hashicorp/add-warnings-backends
Revise Backends Config Page
2022-06-13 11:05:51 -04:00
Park Choong Ho
7510dc4d47
Update website/docs/language/resources/syntax.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-06-13 17:21:37 +09:00
Pierre-Yves Aillet
2fd3da94c7
Fix a wrong usage of sudo in debian install doc
Currently `sudo` is applied to `echo` resulting in:
`/etc/apt/sources.list.d/terraform.list: Permission denied`

Using `echo "..." | sudo tee /etc/apt/sources.list.d/terraform.list` fix the problem
2022-06-11 16:04:10 +02:00
Laura Pacilio
c4d7207230
Merge pull request #31191 from IgnacioNMiranda/patch-1
docs: update depends_on.mdx meta-argument
2022-06-09 16:37:32 -04:00
Laura Pacilio
fa76c1dcf0 apply suggestions from PR review 2022-06-09 14:55:12 -04:00
Laura Pacilio
f775e70e80
Update website/README.md 2022-06-08 17:45:49 -04:00
Laura Pacilio
8a5d981084
Merge branch 'main' into laura-update-docs-readme 2022-06-08 17:44:42 -04:00
Laura Pacilio
1f40a886fe Update readme 2022-06-08 17:40:33 -04:00
Ryan Uber
52d54b0a64 Update wording for 'path.cwd' to be explicit about implications 2022-06-08 14:02:51 -07:00
Laura Pacilio
53d0661785 Add warning note to each backend page 2022-06-08 16:32:01 -04:00
Laura Pacilio
89dbd6a26b Remove overview backends page; add sensitive credentials warning to config page 2022-06-08 16:17:27 -04:00
Laura Pacilio
29435b46ac Edit type constraints docs for style and flow 2022-06-08 12:40:29 -04:00
Park Choong Ho
3513352300
Update syntax.mdx
fix wrong grammar
2022-06-08 18:37:56 +09:00
Laura Pacilio
6aa960c239
Update website/docs/language/expressions/custom-conditions.mdx 2022-06-07 17:09:42 -04:00
Laura Pacilio
9b57fc2964 Add guidance about using the format function 2022-06-07 16:44:25 -04:00
Laura Pacilio
e5658c2478 Explain the the destroy mode is the same as running terraform destroy 2022-06-07 15:27:00 -04:00
Laura Pacilio
3c2685222e Update apply page for style, concision, and clarity 2022-06-07 15:21:40 -04:00
Laura Pacilio
41659a776e
Merge pull request #31185 from paullschock/patch-2
Add details reg. verbosity of debug log level (replace #29641)
2022-06-06 12:25:10 -04:00
Ignacio Miranda Figueroa
68a83e48e7
docs: update depends_on.mdx meta-argument 2022-06-06 11:15:09 -04:00
Alisdair McDiarmid
f8e2b3ada5
Merge pull request #31154 from hashicorp/alisdair/module-variable-optional-default
Add inline defaults to optional object attribute type constraints
2022-06-06 11:06:43 -04:00
Paul Schock
48b06007dd
Add details reg. verbosity of debug log level
Update as a result of https://github.com/hashicorp/terraform/pull/29641
2022-06-03 12:17:52 -07:00
Adam Christie
50919044d5
Fix custom conditions example
Original code block erroneously references `aws_vpc.example` but appears to actually mean `data.aws_vpc.example`.
2022-06-01 12:41:15 +01:00
Alisdair McDiarmid
e2a3042025 website: Update documentation for optional attrs
Extend the documentation on type constraints to include the new default
functionality, including a detailed example of a nested structure with
multiple levels of defaults.
2022-06-01 06:40:37 -04:00
Alisdair McDiarmid
718b0875ef lang: Remove defaults function
Now that we are able to specify optional object attribute defaults
inline in a type constraint, the separate `defaults` function is no
longer needed.
2022-06-01 06:40:37 -04:00
Nick Fagerlund
5bf48952fe
Edit docs for replace_triggered_by lifecycle argument (#31129)
- Note that it was added in v1.2, so users know whether they can use it yet.
- Fix nested indentation formatting, so the parent list item stays together.
- Minor copy edits.
- List all of the available lifecycle block arguments before diving into the
  docs for each argument, for ease of reading/scanning.
2022-05-26 10:39:04 -07:00
Dan Potepa
2dd5e10469 Revert "Docs: Change misspelling of variable in documentation"
This reverts commit 7756023564.
2022-05-24 17:54:31 +01:00
Gerard Nguyen
fd21e6e510
Update website/docs/language/modules/develop/providers.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-24 10:53:08 +10:00
Gerard Nguyen
d521d379f8 Add link to default provider configuration definition 2022-05-23 13:06:04 +10:00
Laura Pacilio
83a700b313 Update version notes for custom conditions 2022-05-20 16:10:26 -04:00
Laura Pacilio
b2d3e594ca Remove duplicate versioning note for custom condition checks. 2022-05-20 16:07:27 -04:00
Laura Pacilio
f7c5d1b054 Add version note for env var credentials 1.2 work. 2022-05-20 16:04:37 -04:00
Laura Pacilio
54d084159f Add version note, fix typos, add link to environment variables 2022-05-20 16:00:53 -04:00
Laura Pacilio
55edc6a6af
Merge pull request #31049 from miyagawa-michiru/update-local-exec-arguments
`local-exec` documentation lacks on-destroy documentation
2022-05-19 11:02:38 -04:00
miyagawa-michiru
61271ef117 Add a missing word 2022-05-19 08:05:34 +09:00
James Bardin
f7f4a82619
Merge pull request #31063 from hashicorp/jbardin/v1.2-upgrade-guide
v1.2 upgrade guide
2022-05-18 13:59:39 -04:00
Laura Pacilio
179e108cd1
Update website/docs/language/expressions/custom-conditions.mdx 2022-05-18 13:49:44 -04:00
James Bardin
1a60b3b5be s/obsolete/outdated/ 2022-05-18 13:49:38 -04:00
James Bardin
975158a552
Update website/docs/language/upgrade-guides/1-2.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-18 13:48:32 -04:00
James Bardin
43c78af1c0
Update website/docs/language/upgrade-guides/1-2.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-18 13:48:08 -04:00
James Bardin
0855561db0 group obsolete TLS features in upgrade guide 2022-05-18 13:05:36 -04:00
James Bardin
6e70577a87 re-order upgrade sections 2022-05-18 12:46:12 -04:00
James Bardin
7566ab7c93
Update website/docs/language/upgrade-guides/1-2.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-18 12:45:25 -04:00
James Bardin
3633de8bf5
Update website/docs/language/upgrade-guides/1-2.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-18 12:41:51 -04:00
James Bardin
8166216ba6
Update website/docs/language/upgrade-guides/1-2.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-18 12:41:44 -04:00
James Bardin
24663fbf26
Update website/docs/language/upgrade-guides/1-2.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-18 12:41:39 -04:00
James Bardin
63cd25531f
Update website/docs/language/upgrade-guides/1-2.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-18 12:41:27 -04:00
James Bardin
c658f85552
Update website/docs/language/upgrade-guides/1-2.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-18 12:41:18 -04:00
James Bardin
6cb8e8bbad
Update website/docs/language/upgrade-guides/1-2.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-18 12:40:52 -04:00
James Bardin
0dc7a1fa63
Update website/docs/language/upgrade-guides/1-2.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-18 12:40:43 -04:00
James Bardin
694fb75679
Update website/docs/language/upgrade-guides/1-2.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-18 12:40:12 -04:00
James Bardin
d07621944f
Update website/docs/language/upgrade-guides/1-2.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-18 12:39:49 -04:00
James Bardin
797e592416
Update website/docs/language/upgrade-guides/1-2.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-18 12:39:16 -04:00
Laura Pacilio
edf9324a9e Add learn tutorial link 2022-05-18 12:22:32 -04:00
tombuildsstuff
05528e8c8a backend/azurerm: removing ADAL support 2022-05-18 16:56:10 +02:00
Laura Pacilio
35bc9943ec
Merge pull request #31012 from StefanSchoof/patch-1
Use different names for var and block
2022-05-18 10:45:37 -04:00
Laura Pacilio
e926021890
Merge pull request #31058 from hashicorp/non-interactive-workflows
Add warning about drift to cloud block environment variables
2022-05-18 10:43:37 -04:00
Laura Pacilio
953e0debe1
Update website/docs/cli/cloud/settings.mdx
Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>
2022-05-18 10:38:44 -04:00
James Bardin
b56ff97653 v1.2 upgrade guide 2022-05-18 08:20:14 -04:00
StefanSchoof
650ada19b7
change also variable name in text 2022-05-18 07:59:47 +02:00
miyagawa-michiru
2bb83244f9 Update the explanation about 'when' option 2022-05-18 14:57:46 +09:00
Laura Pacilio
1666aa8463
Update website/docs/language/expressions/custom-conditions.mdx
Co-authored-by: Robin Norwood <rnorwood@hashicorp.com>
2022-05-16 16:43:15 -04:00
Laura Pacilio
5841db00b3 Change private to public dns :-) 2022-05-16 16:28:15 -04:00
Laura Pacilio
555ffdff6c Add warning about drift to cloud block environment variables 2022-05-16 14:56:58 -04:00
Laura Pacilio
1fd140ff83
Merge pull request #31010 from jhrcek/patch-1
Add missing syntax highlighting for terraform snippets
2022-05-16 13:00:05 -04:00
Laura Pacilio
e9025f8636
Merge pull request #31019 from sylvainmetayer/patch-1
Add swift to workspace docs
2022-05-16 12:57:10 -04:00
Sylvain METAYER
16d3fad714
Update website/docs/language/state/workspaces.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-05-16 18:41:41 +02:00
miyagawa-michiru
315d168cc0 Add an explanation about the argument 'when' for local-exec 2022-05-15 18:12:26 +09:00
Martin Atkins
289bb60ce1 core: Defer on transitive dependencies for data resources with conditions
When a data resource is used for the purposes of verifying a condition
about an object managed elsewhere (e.g. if the managed resource doesn't
directly export all of the information required for the condition) it's
important that we defer the data resource read to the apply step if the
corresponding managed resource has any changes pending.

Typically we'd expect that to come "for free" but unfortunately we have
a pragmatic special case in our handling of data resources where we
normally defer to the apply step only if a _direct_ dependency of the data
resource has a change pending, and allow a plan-time read if there's
a pending change in an indirect dependency. This allowed us to preserve
some compatibility with the questionable historical behavior of always
reading data resources proactively unless the configuration contains
unknown values, since the arguably-more-correct behavior would've been a
regression for anyone who had been depending on that before.

Since preconditions and postconditions didn't exist until now, we are not
constrained in the same way by backward compatibility, and so we can adopt
the more correct behavior in the case where a data resource has conditions
specified. This does unfortunately make the handling of data resources
with conditions subtly inconsistent with those that don't, but this is
a better situation than the alternative where it would be easy to get into
a trapped situation where the remote system is invalid and it's impossible
to plan the change that would make it valid again because the conditions
evaluate too soon, prior to the fix being applied.
2022-05-11 11:01:38 -07:00
Martin Atkins
4cffff24b1 core: Report reason for deferring data read until apply
We have two different reasons why a data resource might be read only
during apply, rather than during planning as usual: the configuration
contains unknown values, or the data resource as a whole depends on a
managed resource which itself has a change pending.

However, we didn't previously distinguish these two in a way that allowed
the UI to describe the difference, and so we confusingly reported both
as "config refers to values not yet known", which in turn led to a number
of reasonable questions about why Terraform was claiming that but then
immediately below showing the configuration entirely known.

Now we'll use our existing "ActionReason" mechanism to tell the UI layer
which of the two reasons applies to a particular data resource instance.
The "dependency pending" situation tends to happen in conjunction with
"config unknown", so we'll prefer to refer that the configuration is
unknown if both are true.
2022-05-09 11:12:47 -07:00
Sylvain METAYER
3b1b485f45
Add swift to workspace docs
Swift backend support workspace (cf https://github.com/hashicorp/terraform/issues/19993#issuecomment-672839820 )
2022-05-09 17:53:00 +02:00
Laura Pacilio
98f9d646ce
Merge pull request #30969 from hashicorp/add-note-about-spaces
Add warning about spaces in variable value assignment
2022-05-09 10:34:30 -04:00
StefanSchoof
7cb1cf7b63
Use different names for var and block
I think it is easier to understand, which refers to the var and which to the block, when the var has not the exact same name as the block
2022-05-06 09:47:03 +02:00
Dirk Leser
707f39b440
Added example with function argument expansion
Even if the expansion with three dots is explicity mentioned in https://www.terraform.io/language/expressions/function-calls#expanding-function-arguments the additional example would have helped me a lot as it is a common use case to "flatten" a list of maps.
2022-05-06 09:28:42 +02:00
Jan Hrcek
fd5020cac7
Add missing syntax highlighting for terraform snippets 2022-05-06 08:22:03 +02:00
Alisdair McDiarmid
b0f837e1f3
Fix custom conditions Markdown typo 2022-05-05 18:38:29 -04:00
Kevin Wang
f98cad3384
feat: pull over content for /docs (#30991)
* feat: pull over content for `/docs`

* chore: format json
2022-05-03 16:23:09 -04:00
Dan Slimmon
1f6d986595 Include something about how state is checked 2022-05-02 09:57:25 +00:00
Laura Pacilio
3eea9d709d Add warning about spaces in variable value assignment 2022-04-29 16:59:39 -04:00