Commit Graph

29894 Commits

Author SHA1 Message Date
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
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
Alisdair McDiarmid
ec890211b6
Merge pull request #31008 from hashicorp/custom-conditions-typo
Fix custom conditions Markdown typo
2022-05-05 18:46:26 -04:00
Alisdair McDiarmid
b0f837e1f3
Fix custom conditions Markdown typo 2022-05-05 18:38:29 -04:00
Alisdair McDiarmid
59c4bc4057 Fix .gitignore terraform entry to be root-relative 2022-05-05 10:24:38 -04:00
Alisdair McDiarmid
125eb51dc4 Remove accidentally-committed binary
Also add this path to .gitignore to prevent future mistakes.
2022-05-05 10:14:15 -04:00
James Bardin
b97c64009e
Merge pull request #30987 from hashicorp/jbardin/get-schema-diags
plugin: diagnostics must be checked on all schema calls
2022-05-04 11:18:42 -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
Anna Winkler
22c121df86
Bump compatibility version to 1.3.0 for terraform core release (#30988)
* Bump compatibility version to 1.3.0 for terraform core release

Co-authored-by: Brandon Croft <brandon.croft@gmail.com>
2022-05-03 12:28:41 -06:00
James Bardin
8943c79322 diagnostics must be checked on all schema calls
We can no longer be assured that the particular instance of a provider
we are using has had GetProviderSchema called. Always check the
diagnostics even if we're fetching a cached response.
2022-05-03 10:30:59 -04:00
Alisdair McDiarmid
2f3200731c
Merge pull request #30984 from hashicorp/alisdair/fix-ssh-http-proxy-panic
communicator/ssh: Fix crash using SSH+HTTP proxy
2022-05-03 09:21:12 -04:00
Alisdair McDiarmid
0c435e2e08 communicator/ssh: Fix crash using SSH+HTTP proxy 2022-05-03 08:24:59 -04:00
James Bardin
80792312d8
Merge pull request #30979 from hashicorp/jbardin/cancel-auto-approve
check for cancellation before apply confirmation
2022-05-02 17:14:14 -04:00
Alisdair McDiarmid
28e94013b6
Merge pull request #30975 from hashicorp/lockfile-mention-state
Add note about lockfile's relationship to state
2022-05-02 16:53:42 -04:00
Luces Huayhuaca
ea1f0007ff
fix typo for task.Status (#30978) 2022-05-02 11:52:22 -07:00
James Bardin
df0a70bfb6 check for cancellation before apply confirmation
When executing an apply with no plan, it's possible for a cancellation
to arrive during the final batch of provider operations, resulting in no
errors in the plan. The run context was next checked during the
confirmation for apply, but in the case of -auto-approve that
confirmation is skipped, resulting in the canceled plan being applied.

Make sure we directly check for cancellation before confirming the plan.
2022-05-02 14:09:47 -04:00
Dan Slimmon
1f6d986595 Include something about how state is checked 2022-05-02 09:57:25 +00:00
Kevin Wang
488853be9c
fix: img/docs/concrete-plan.png (#30967) 2022-04-29 15:33:45 -04:00
Laura Pacilio
78f90a64b5
Merge pull request #30956 from tigerblue77/patch-1
Update apt.mdx
2022-04-29 11:58:17 -04:00
James Bardin
f19848babf
Merge pull request #30962 from hashicorp/jbardin/update-ssh
udpate x/crypto/ssh
2022-04-28 16:44:23 -04:00
James Bardin
8699b115a7 udpate x/crypto/ssh 2022-04-28 16:21:09 -04:00
James Bardin
0bcd04a561
Merge pull request #30958 from hashicorp/jbardin/dependencies-race
Fix race in state dependency encoding
2022-04-28 11:56:51 -04:00
James Bardin
2bd72914d8 add internal/states to the race detector tests
This runs relatively quickly, and there is at least 1 test with
concurrent operations.
2022-04-28 11:44:32 -04:00
James Bardin
34a01c92d6 copy Dependencies before sorting in state
Instances of the same AbsResource may share the same Dependencies, which
could point to the same backing array of values. Since address values
are not pointers, and not meant to be shared, we must copy the value
before sorting the slice in-place. Because individual instances of the
same resource may be encoded to state concurrently, failure to copy the
slice first can result in a data race.
2022-04-28 11:44:32 -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
Martin Atkins
7e37d486dd
Update CHANGELOG.md 2022-04-27 17:15:21 -07: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
James Bardin
de65cc43f3 update version to 1.3.0 2022-04-27 15:52:08 -04:00
Alisdair McDiarmid
5e023ecfee
Merge pull request #30949 from hashicorp/alisdair/typeexpr-tests
typeexpr: Add test coverage
2022-04-27 15:44:00 -04:00
James Bardin
cc8e6fa05a update go version 2022-04-27 15:04:30 -04:00
James Bardin
207e568010 v1.3 changelog 2022-04-27 14:56:26 -04:00
Alisdair McDiarmid
c82e291422 typeexpr: More optional modifier tests
Ensuring that the constraint boolean carries through to the next level
of constraint calculation after an optional() modifier.
2022-04-27 14:53:16 -04:00
Alisdair McDiarmid
dde4979c49 typeexpr: Improve diagnostic for any() constraints
Using the any keyword with arguments (e.g. any(string, bool)) is
invalid, but any is not technically a "primitive type keyword". This
commit corrects the language in the diagnostic and updates the tests.
2022-04-27 14:52:03 -04:00
Tom Bamford
7a9746e835
Changelog for #30936 2022-04-27 19:42:38 +01: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
Tom Bamford
807e7c0350
Update to go-azure-helpers v0.31.1 2022-04-27 19:27:30 +01:00
Alisdair McDiarmid
356cee7b89 typeexpr: Add test coverage for optional modifier 2022-04-27 14:25:42 -04:00
Alisdair McDiarmid
bf9f733ca2 typeexpr: Import tests from hashicorp/hcl
This package is a fork of the HCL ext/typeexpr package, but we dropped
the tests when bringing it across. This commit imports those tests
verbatim.
2022-04-27 14:16:33 -04:00
Alisdair McDiarmid
6956a06d63 Update CHANGELOG.md 2022-04-27 13:46:23 -04:00
Alisdair McDiarmid
b02867bed3
Merge pull request #30945 from hashicorp/alisdair/jsonstate-output-type
json-output: Add output type to JSON format
2022-04-27 13:36:43 -04: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
7fe3768327
Merge pull request #30931 from hashicorp/jbardin/replace_triggered_by-docs
replace_triggered_by docs
2022-04-26 18:29:43 -04: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