Commit Graph

31253 Commits

Author SHA1 Message Date
Roberto Hidalgo
0dda1d5c61
Return debuggeble CAS errors on consul state put
ran into this error while running terraform on a container and saving state to Consul. I suspect my policy needs tweaking but it's impossible to tell with an error like this:

```
╷
│ Error: Failed to save state
│ 
│ Error saving state: consul CAS failed with transaction errors:
│ [0xc0006e93c8]
╵
```

This PR makes the will include the error messaage in the details so I can continue debugging
2023-04-26 23:44:39 -06:00
Craig Wright
19423e0a46
Merge pull request #33101 from hashicorp/fix-33069 2023-04-26 15:26:41 -07:00
Craig Wright
aae6e8ee69 Replaced tab with spaces. 2023-04-26 15:11:49 -07:00
Craig Wright
412e7ad908 Adding additional entry necessary to generate docs. 2023-04-26 15:08:44 -07:00
Craig Wright
c982aa1c54
Merge pull request #33092 from 0xchabbi/0xchabbi-patch-1 2023-04-26 14:44:40 -07:00
Bilal
3901478212
Update README.md
added the right correction
2023-04-26 23:09:18 +02:00
Alisdair McDiarmid
a686bde5c9
Merge pull request #33099 from hashicorp/alisdair/copywrite-ignore-protobuf-generated-code
Configure copywrite to ignore protobuf, stringer, mockgen output
2023-04-26 17:01:51 -04:00
Alisdair McDiarmid
30a08d08c8 Configure copywrite to ignore more generated code
stringer and mockgen added to the list.
2023-04-26 16:47:54 -04:00
Alisdair McDiarmid
4d6a523859 Configure copywrite to ignore protobuf output 2023-04-26 16:38:53 -04:00
Zac Clifton
3bb6a5896b
Feat: Add strcontains function and documentation (#33069)
* add strcontains function and documentation
2023-04-26 20:41:32 +01:00
Scott Macfarlane
fa3980b77d
Disable reproducability check in actions-go-build (#33095)
Signed-off-by: Scott Macfarlane <smacfarlane@hashicorp.com>
2023-04-26 19:42:00 +01:00
Alisdair McDiarmid
6a0d20feac
Merge pull request #33096 from hashicorp/alisdair/goimports-fixes
Fix goimports discrepancies
2023-04-26 14:41:03 -04:00
Alisdair McDiarmid
0ffdd07980 Fix goimports discrepancies 2023-04-26 14:33:13 -04:00
Alisdair McDiarmid
59b7678624
Merge pull request #33094 from hashicorp/alisdair/copywrite-no-testdata
Configure copywrite to ignore testdata
2023-04-26 14:08:35 -04:00
Alisdair McDiarmid
8ffd5d0ca9
Configure copywrite to ignore testdata 2023-04-26 13:59:12 -04:00
kmoe
c6400fabb1
configs: add import block (#33081) 2023-04-26 16:28:11 +01:00
Bilal
1ffe971a90
Update README.md
fix dead-link and change naming to have right understanding. (Add Peramlink instead of copy path)
2023-04-26 17:11:55 +02:00
dependabot[bot]
7ae272fe31
Bump yaml from 2.2.1 to 2.2.2 in /website (#33089)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 16:50:32 -05:00
kmoe
531efd303b
add types for plannable import (#33080) 2023-04-25 15:19:48 +01:00
Lauren
c87a6aa80d
Merge pull request #33084 from hashicorp/laurenolivia/add-resource-drift-logtype
[TF-5829]add resource_drift JSONLogType
2023-04-24 14:30:58 -05:00
Lauren
50c3f53595 add resource_drift logtype 2023-04-24 15:08:33 -04:00
James Bardin
d47d475a03
Merge pull request #33079 from hashicorp/jbardin/destroy-plan-faster-providers
skip inter-provider cycle check in destroy plan
2023-04-24 12:29:05 -04:00
James Bardin
583350a5c4 skip inter-provider cycle check in destroy plan
Just like in the destroy apply, we can skip the inter-provider cycle
check when creating the destroy plan, which can be expensive when there
are a lot of resource instances with dependencies from another provider.
2023-04-24 12:12:40 -04:00
Liam Cervante
b54668f44c
make the unknown attribute renderer consider the force replacement metadata (#33065) 2023-04-24 11:02:32 +02:00
Liam Cervante
14123e277c
Include sensitive metadata from the schema when building the json state output (#33059)
* include sensitive metadata from the schema when building the json state output

* found another test case
2023-04-24 10:52:44 +02:00
Liam Cervante
519a18aedf
Propagate unknown and sensitive metadata to dynamic attributes (#33057)
* propagate unknown and sensitive metadata to dynamic attributes

* update goimports and add some comments
2023-04-24 10:28:21 +02:00
Craig Wright
c81aef3655
Merge pull request #33064 from willfaught/patch-1 2023-04-21 14:53:55 -07:00
Liam Cervante
357012a2f3
Refactor of differ to make code reuse easier (#33054)
* refactor of differ to make code reuse easier

* fix imports
2023-04-21 09:51:55 +02:00
Liam Cervante
324c82b077
Update CHANGELOG.md 2023-04-21 09:50:53 +02: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
Liam Cervante
5275392303
Update CHANGELOG.md 2023-04-21 08:44:13 +02:00
Rémi Lapeyre
af571b2642
Improve environment variable support for the pg backend (#33045)
* Improve environment variable support for the pg backend

This patch does two things:
  - it adds environment variable support to the parameters that did
    not have it (and uses `PG_CONN_STR` instead of `PGDATABASE` which is
    actually more appropriate to match the behavior of other PostgreSQL
    utilities)
  - better documents how to give the connection parameters as environment
    variables for the ones that were already supported based on the
	recommendation of @bsouth00

I will prepare a backport of the documentation part of this once it is
merged.

Closes https://github.com/hashicorp/terraform/issues/33024

* Remove global variable in test of the PG backend
2023-04-21 08:39:19 +02:00
Will Faught
bddd348d74
Remove incorrect space 2023-04-20 20:30:05 -07:00
Glenn Sarti
7e2e834aff
Emit warnings for certain run events in cloud backend (#33020)
The cloud backend, which communicates with TFC like APIs, can create
runs which may have one more configuration parameters altered. These
alterations are emitted as run-events on the run so that API clients
can consume and display them to users. This commit adds a step in
plan operation to query the run-events once a run is created and then
emit specific run-event descriptions to the console as warnings for
the user.
2023-04-17 08:53:47 -07:00
The Terraform Team
c10a07f3b2 Automated equivalence test golden file update for release 1.5.0-alpha20230405. 2023-04-17 09:35:26 +00:00
Liam Cervante
1a36d07ead
Add new actions for executing the equivalence tests after a CRT release (#32959)
* add new actions for executing the equivalence tests after a CRT release

* ready for review

* Update .github/actions/equivalence-test/action.yml

Co-authored-by: CJ Horton <17039873+radditude@users.noreply.github.com>

* address comments

---------

Co-authored-by: CJ Horton <17039873+radditude@users.noreply.github.com>
2023-04-17 10:51:04 +02:00
Sebastian Rivera
e6c3aab6c5
Merge pull request #33018 from hashicorp/tf-5529-sro-tfe-version-check 2023-04-14 11:55:12 -04:00
James Bardin
0e0db2d206
Merge pull request #33013 from Harmelodic/patch-1
Document new -or-create flag.
2023-04-14 08:46:58 -04:00
Liam Cervante
2c624acea1
Fix rendering unknown values in map and null string primitives (#33029)
* fix rendering unknown values in map and null string primitives

* Update map.go

* fix code consistency checks
2023-04-14 09:56:32 +02:00
Sebastian Rivera
300a60f393 Fix typo in format version check 2023-04-13 18:30:56 -04:00
Sebastian Rivera
5634ae3e18 Unit tests to ensure renderer is appropriately called 2023-04-13 18:30:56 -04:00
Sebastian Rivera
b23cfaefe8 Refactor SRO check to prevent duplicate plan output 2023-04-13 18:30:56 -04:00
Liam Cervante
7c439b25da
add copywrite file that excludes .tf extension (#33012) 2023-04-11 15:51:44 +02:00
Matt Smith
2a2e1904ea
Document new -or-create flag. 2023-04-11 13:52:59 +02:00
Liam Cervante
9c87006c34
checks: hide check diagnostics during plans that will not wait for approval (#32938)
* checks: filter out check diagnostics during certain plans

* wrap diagnostics produced by check blocks in a dedicated check block diagnostic

* address comments
2023-04-11 10:54:30 +02:00
Craig Wright
c993569591
Merge pull request #33000 from hibbertda/azrm_backend_metadata 2023-04-07 10:12:48 -07:00
kt
ee2f418f36
Update website/docs/language/settings/backends/azurerm.mdx 2023-04-06 17:19:23 -07:00
Daniel Hibbert
c1b6c45791 added metadata_host param for AzureRM backend. 2023-04-06 16:11:33 -04:00
Daniel Kimsey
eed06e2342
Merge pull request #32990 from hashicorp/releng/smoke-test-docker-builds
ci: Smoke test docker builds
2023-04-06 10:51:25 -05:00
James Bardin
acbcbcb311
Merge pull request #32988 from hashicorp/jbardin/destroy-plan-null-type
the destroy plan should use correct type
2023-04-06 09:53:55 -04:00