Commit Graph

6995 Commits

Author SHA1 Message Date
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
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
Kevin Wang
488853be9c
fix: img/docs/concrete-plan.png (#30967) 2022-04-29 15:33:45 -04:00
Tigerblue77
2928967b41
Update apt.mdx
- Removed usage of `apt-key` which is deprecated and replaced by `gpg` command
- Removed usage of `curl` command which is not present by default on Debian systems
2022-04-28 14:58:56 +02:00
htamakos
4cfb6bc893
communicator/ssh: Add support SSH over HTTP Proxy (#30274)
Terraform's remote-exec provision hangs out when it execs on HTTP Proxy bacause it dosen't support SSH over HTTP Proxy. This commits enables Terraform's remote-exec to support SSH over HTTP Proxy.

* adds `proxy_*` fields to `connection` which add configuration for a proxy host
* if `proxy_host` set, connect to that proxy host via CONNECT method, then make the SSH connection to `host` or `bastion_host`
2022-04-27 16:59:17 -04:00
Tom Bamford
351fd9b119
Merge pull request #30936 from hashicorp/f/azurerm-backend-oidc
backend/remote-state/azure: support OIDC authentication
2022-04-27 19:34:53 +01:00
Tom Bamford
d08bc4463d
Azure Backend: support OIDC authentication 2022-04-27 19:27:30 +01:00
Alisdair McDiarmid
12c8f9498c json-output: Add output type to JSON format
Previously the supported JSON plan and state formats included only
serialized output values, which was a lossy serialization of the
Terraform type system. This commit adds a type field in the usual cty
JSON format, which allows reconstitution of the original value.

For example, previously a list(string) and a set(string) containing the
same values were indistinguishable. This change serializes these as
follows:

{
  "value": ["a","b","c"],
  "type": ["list","string"]
}

and:

{
  "value": ["a","b","c"],
  "type": ["set","string"]
}
2022-04-27 13:30:15 -04:00
Craig Wright
e217c0c53a
Merge pull request #30938 from jensenbox/patch-1
chore: Typo fix (`retuns` -> `returns`)
2022-04-26 18:32:41 -07:00
Ryoh Akiyoshi
9b4600cc23
website: Fix an example for urlencode function
The example did not reflect the actual behavior of escaping spaces.
2022-04-26 17:38:47 -07:00
Christian Jensen
85a081bd2a
chore: Typo fix
Fix a mispelled word.
2022-04-26 15:56:32 -07:00
James Bardin
0501980b46
Update website/docs/language/resources/behavior.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-04-26 18:17:58 -04:00
James Bardin
4e95b24022
Update website/docs/language/meta-arguments/lifecycle.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-04-26 18:17:52 -04:00
James Bardin
6c15cab211
Update website/docs/language/meta-arguments/lifecycle.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-04-26 18:17:46 -04:00
James Bardin
840a7437c2
Update website/docs/language/meta-arguments/lifecycle.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-04-26 18:17:41 -04:00
James Bardin
7b40b31697 replace_triggered_by docs 2022-04-25 18:43:38 -04:00
Kevin Wang
2563bf3f96
feat: support local preview, post split; add deploy preview (#30814)
* chore: support local preview, post split

* feat: deploy preview

* update script perms
- chmod +x ./website/scripts/website-build.sh

* npm i

* chore: website-build uses 'kevin/terraform-split'

* deploy preview test

* chore: test

* PREVIEW_DIR & CLONE_DIR = preview

* rm dupe preview path

* empty commit

* ../data & ..docs

* website-preview

* remove REPO var

* move `intro` and `guides` back to where they were

* empty commit

* chore move `intro` and `guides`

* chore: copy over images

* move images into `/website`
- content API requires this

* chore: `CURRENT_GIT_BRANCH`

* fix: `CURRENT_GIT_BRANCH`

* fix `CURRENT_GIT_BRANCH`

* debug current dir

* fix `CURRENT_GIT_BRANCH`

* chore: comment CURRENT_GIT_BRANCH

* Update Makefile

* Update website/scripts/website-build.sh

* optimize images

* chore(Makefile): move vars to top

* remove branch
2022-04-21 13:58:16 -04:00
Laura Pacilio
e68ad5ec46 more edits 2022-04-20 18:57:50 -04:00
Laura Pacilio
912e6ff6de Apply suggestions from PR review 2022-04-20 18:54:50 -04:00
Laura Pacilio
a0ebb94fb5
Merge branch 'main' into update-TF-WORKSPACE-variable 2022-04-20 18:40:26 -04:00
Sebastian Rivera
f63ef2b5ef Rename cloud env vars to use TF_CLOUD prefix 2022-04-20 14:34:53 -04:00
Laura Pacilio
d3e660d912
Merge pull request #30772 from hashicorp/laura-update-pre-post-conditions
[WIP] Preconditions and Postconditions Content Updates
2022-04-20 12:25:43 -04:00
Laura Pacilio
b1d9339368 Final formatting nits 2022-04-20 12:19:29 -04:00
Laura Pacilio
3c7c5bbd21 add links to function and expressions; move result types back to conditionals page (oops) 2022-04-20 12:06:50 -04:00
Laura Pacilio
2a206c7984 fix incorrect HCL syntax for example 2022-04-20 11:49:33 -04:00
Laura Pacilio
7a43db405c Add link to operators page and all out other types 2022-04-20 11:46:37 -04:00
Tom Harvey
2eb9118cd1
backend/remote-state/azure: defaulting the Azure Backend to use MSAL (#30891)
* backend/remote-state/azure: defaulting the Azure Backend to use MSAL

Fixes #30881

* backend/remote-state/azurerm: deprecating `use_microsoft_graph`
2022-04-20 17:31:44 +02:00
Laura Pacilio
ba3bb5ad5d Apply suggestions from PR review 2022-04-20 11:30:20 -04:00
Laura Pacilio
686dbcdb8d fix confusing sentence on lifecycle page 2022-04-20 11:24:23 -04:00
Laura Pacilio
4d4d774aef fix confusing sentence on resources page 2022-04-20 11:23:15 -04:00
Laura Pacilio
ce757244f2 fix confusing sentence in outputs 2022-04-20 11:22:11 -04:00
Laura Pacilio
f660f54b87 Final nits from review 2022-04-20 11:21:11 -04:00
Laura Pacilio
e8743143e3
Update website/docs/language/data-sources/index.mdx
Co-authored-by: Alisdair McDiarmid <alisdair@users.noreply.github.com>
2022-04-20 11:17:45 -04:00
Laura Pacilio
87b09b1ee1 Fix broken HCL in example 2022-04-20 11:17:16 -04:00
Brandon Croft
1943af51a2
fix(creds): allow periods in TF_TOKEN_... credentials vars 2022-04-15 12:38:14 -06:00
Kevin Wang
545346b331
chore: move content into docs (#30837) 2022-04-14 12:04:35 -04:00
Shanee D
ed59bd7299
fix: Fix typo in v1.0 upgrade guide 2022-04-13 16:13:20 -07:00
Laura Pacilio
201c9168fa Clarify that users can set TF_WORKSPACE and use tags 2022-04-13 16:39:28 -04:00
Brandon Croft
8138fb7b29
Apply suggestions from documentation review
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-04-13 13:50:11 -06:00
Brandon Croft
fda05f3d44
feat(credentials): allow hyphens to be encoded as __ in variables
Hyphen characters are allowed in environment variable names, but are not valid POSIX variable names. Usually, it's still possible to set variable names with hyphens using utilities like env or docker. But, as a fallback, host names may encode their hyphens as double underscores in the variable name. For the example "café.fr", the variable name "TF_TOKEN_xn____caf__dma_fr" or "TF_TOKEN_xn--caf-dma_fr"
may be used.
2022-04-13 13:49:59 -06:00
Brandon Croft
dff6a8431c
Apply doc suggestions from code review
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-04-13 13:49:58 -06:00
Brandon Croft
307326fa3a
allow remote service creds to be configured using env
Introduces a new method of configuring token service credentials using a host-specific environment variable. This configuration was previously possible using the [terraform-credentials-env](https://github.com/apparentlymart/terraform-credentials-env) credentials helper.

This new method is now consulted first, as it is seen to be the most proximate source of credentials before CLI configuration while still falling back to the credentials helper.
2022-04-13 13:49:57 -06:00
Kevin Wang
8eaf7fe85e
chore: vercel config (#30831)
- follows: https://github.com/hashicorp/terraform-cdk/pull/1611
2022-04-12 12:19:28 -04:00
Sebastian Rivera
f95c7935c9
Update website/docs/cli/cloud/settings.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-04-11 14:33:13 -04:00
Sebastian Rivera
4c3429f1a0 Update docs to explain new TF_WORKSPACE behavior for cloud config 2022-04-11 14:09:24 -04:00
Laura Pacilio
f9462d5d51 Update links to say "Custom Condition Checks" 2022-04-07 16:25:09 -04:00
Laura Pacilio
3ed8c5c467 Fix in-text link 2022-04-07 13:51:56 -04:00
Laura Pacilio
4c097842df Move conditionals information to conditional expressions page 2022-04-07 13:48:44 -04:00
Laura Pacilio
375b3583fd APply suggestions from PR review 2022-04-07 12:12:13 -04:00
Sebastian Rivera
9c0a8f7e35 Update env variable docs section to include TF_WORKSPACE 2022-04-07 11:46:36 -04:00
Laura Pacilio
3bc3bc52f8
Update website/docs/language/expressions/custom-conditions.mdx
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
2022-04-07 11:40:01 -04:00
Laura Pacilio
b997c983a5
Update website/docs/language/expressions/custom-conditions.mdx
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
2022-04-07 11:39:41 -04:00
Laura Pacilio
4ab955eeab
Update website/docs/language/expressions/custom-conditions.mdx
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
2022-04-07 10:13:41 -04:00
Laura Pacilio
6b986c94bc
Update website/docs/language/expressions/custom-conditions.mdx
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
2022-04-07 10:12:49 -04:00
Laura Pacilio
d69cb58ff5 Add additional sections to condition expressions section 2022-04-06 17:01:04 -04:00
Laura Pacilio
eea860e0cf Fixing typos and doing a read through 2022-04-06 16:55:43 -04:00
Laura Pacilio
04d329a9e1 Add references to custom conditions on related pages 2022-04-06 16:11:36 -04:00
Laura Pacilio
5803963be8 more nitpicks 2022-04-06 15:45:27 -04:00
Laura Pacilio
62a7b51ba7 more edits 2022-04-06 15:41:02 -04:00
Laura Pacilio
3ae238a448 More language edits 2022-04-06 14:57:20 -04:00
Laura Pacilio
af7e688859 more language cleanup for clarity 2022-04-05 17:01:21 -04:00
Laura Pacilio
b2576a3df3 Update page name to Custom Conditions per feedback 2022-04-05 15:50:24 -04:00
Jane
4de27fc52b
Update website/docs/language/settings/terraform-cloud.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-04-01 14:22:14 +08:00
Jane
5b6eaa4fea
Add hostname argument to cloud block 2022-03-31 09:50:37 +08:00
Laura Pacilio
040985f6e1 more edits 2022-03-30 17:59:03 -04:00
Laura Pacilio
b0f491f2d1 update section title 2022-03-30 17:57:03 -04:00
Laura Pacilio
d12b170ef2 more page edits for flow and style 2022-03-30 17:48:43 -04:00
Laura Pacilio
5effda4170 Rename page again 2022-03-30 17:18:16 -04:00
Laura Pacilio
42d73fe324 Rename page in sidebar and change filename 2022-03-30 17:11:23 -04:00
Laura Pacilio
2449fadf06 Revising preconditions and postconditions 2022-03-30 17:00:13 -04:00
Sebastian Rivera
100031a2d9 Update docs to include TF_HOSTNAME env var 2022-03-30 11:54:51 -04:00
Sebastian Rivera
b4b4f4e9d9
Merge pull request #30719 from hashicorp/sebasslash/add-tf-org-env-var
Add TF_ORGANIZATION env var support
2022-03-30 11:41:07 -04:00
Laura Pacilio
38dd0ef2f3
Merge pull request #30423 from noce2/patch-1
Docs Update: Show example of state lock table access control
2022-03-29 15:20:49 -04:00
Nsikan
a813854a82
Update website/docs/language/settings/backends/s3.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-03-29 16:40:59 +01:00
Alisdair McDiarmid
120d096615
Merge pull request #30747 from george-mengelberg/patch-1
Description of '-' symbol as used in format()
2022-03-28 12:58:12 -04:00
Laura Pacilio
b5c0955cb9
Merge pull request #30712 from hashicorp/file-provisioner-powershell-warning
Add PowerShell note to file provisioner page
2022-03-28 11:13:28 -04:00
Sebastian Rivera
b260883a98 Update docs to mention TF_ORGANIZATION env var 2022-03-26 16:44:16 -04:00
george-mengelberg
d7316e79ca
Description of '-' symbol as used in format()
The existing description for the '-' symbol as use in format() stated that the result would padded spaces to the left.  When tested in via 'terraform console' using format("%-10.1f", 3) the result was "3.0       "

Terraform v1.1.7
2022-03-26 08:26:44 -07:00
ritsok
bef18c47cb Link workflow tutorials from docs 2022-03-23 16:38:36 -04:00
Laura Pacilio
d74c4972d7 Add more context to note 2022-03-21 14:09:25 -04:00
Laura Pacilio
881fbd1971 Add PowerShell note to file provisioner page 2022-03-21 14:03:18 -04:00
Laura Pacilio
0ba0fe667c Add period 2022-03-18 17:18:25 -04:00
Laura Pacilio
c7afb7db94 Add note about powershell formatting 2022-03-18 17:15:24 -04:00
Anna Winkler
3727191078
Merge pull request #30671 from hashicorp/aw/clarify-var
Remove incorrect sentence
2022-03-16 08:35:03 -06:00
Craig Wright
c5d7bd3e65
Merge pull request #30674 from loekd/patch-5
Update toset.mdx
2022-03-15 17:31:41 -07:00
Laura Pacilio
7c0cbaa407
Merge pull request #30281 from Mukesh05/patch-3
Terraform may be misled, not provider
2022-03-15 16:50:36 -04:00
Laura Pacilio
50d49d0b0d
Merge pull request #30649 from dragondrop-cloud/main
Documentation Update: Capture `cloud`/ `backend` block override behavior in docs
2022-03-15 16:47:23 -04:00
GoodmanBen
659fb09fc1 fix: cleaner syntax 2022-03-15 16:36:04 -04:00
GoodmanBen
b8d8461dbb no new line changes in terraform-cloud.mdx 2022-03-15 11:26:04 -04:00
GoodmanBen
12f125d958 remove override interjection on terraform-cloud docs 2022-03-15 11:25:05 -04:00
Loek Duys
c6fa1e70ef
Update toset.mdx
Fix output in `toset`
```
toset(["a", "b", 3])
toset([
  "3",
  "a",
  "b",
])
```

This is the actual output from the tf console, using Terraform v1.1.5 on windows_amd64
2022-03-15 13:48:14 +01:00
GoodmanBen
e9043cdcad fix: suggested changes 2022-03-14 19:03:53 -04:00
Anna Winkler
300ab16939
Remove incorrect sentence
There is always a configuration for import and using `-var` is always allowed.
2022-03-14 14:01:17 -06:00
Laura Pacilio
53e3f044b0
Update website/docs/cli/commands/refresh.mdx 2022-03-14 12:18:54 -04:00