Commit Graph

30959 Commits

Author SHA1 Message Date
Craig Wright
d53cb81bed
Merge pull request #32889 from fidelity/feature/doc-change 2023-03-21 15:31:34 -07:00
James Bardin
9504b2640f
Merge pull request #32891 from hashicorp/jbardin/sensitive-mod-outputs
Store all sensitive marks for non-root module outputs in state
2023-03-21 13:59:18 -04:00
Middleton, Nathan
2213d91746 description feedback change 2023-03-21 16:46:20 +00:00
Craig Wright
bd75dade9c
Merge pull request #32884 from DocAdam/patch-2 2023-03-20 16:44:34 -07:00
Craig Wright
2073d6ac46
Merge pull request #32882 from ChristopherHackett/patch-2 2023-03-20 15:52:47 -07:00
Craig Wright
23db9f3062
Merge pull request #32883 from ChannyClaus/patch-1 2023-03-20 14:53:37 -07:00
James Bardin
defd7f0cde test that module outputs maintain sensitive marks 2023-03-20 14:22:08 -04:00
James Bardin
d33e627514 remove old comments 2023-03-20 14:22:08 -04:00
James Bardin
425c6bead2 store non-root sensitive outputs in state
Module outputs are evaluated from state, so in order to have detailed
information about sensitivity from non-root module outputs, we need to
store the value along with all sensitive marks. This aligns with the
usage of state being the in-memory store for other temporary values like
locals and variables.
2023-03-20 13:27:53 -04:00
Adam Pugh
3b4207a146
Spelling update
updated: configuratation to configuration
2023-03-19 07:14:06 -05:00
Chan Kang
2ec0bf3cea
Update BUGPROCESS.md
non-material / trivial grammar fix
2023-03-18 17:14:20 -04:00
Christopher Hackett
493973d6da
Correct docs on Configuration Directory
The option was removed in v0.15 and so is no-longer "plan[ed]" https://newreleases.io/project/github/hashicorp/terraform/release/v0.15.0
2023-03-18 20:22:31 +00:00
Craig Wright
4fff0bd857
Merge pull request #32877 from DocAdam/patch-1 2023-03-17 15:18:30 -07:00
Adam Pugh
f4c3611977
Update settings.mdx
updated misspelling to precedence
2023-03-17 11:05:07 -05:00
Bryce Kalow
6b35927cf0
docs: fix up content issues, add content-check command (#32869) 2023-03-16 11:53:13 -05:00
Alisdair McDiarmid
dc00ee8c8a
Merge pull request #32870 from hashicorp/alisdair/revert-cty-upgrade
go.mod: Revert cty minor version v1.13 upgrade
2023-03-16 12:02:24 -04:00
Martin Atkins
9f827f57ae go.mod: Revert cty minor version v1.13 upgrade
We inadvertently incorporated the new minor release of cty into the 1.4
branch, and that's introduced some more refined handling of unknown values
that is too much of a change to introduce in a patch release.

Therefore this reverts back to the previous minor release for the v1.4
series, and then we'll separately get the main branch ready to work
correctly with the new cty before Terraform v1.5.

This reverts just the upgrade and the corresponding test changes from
#32775, while retaining the HCL upgrade and the new test case it
introduced for that bug it was trying to fix. That new test is still
passing so it seems that the cty upgrade is not crucial to that fix.
2023-03-16 11:48:41 -04:00
Martin Atkins
4e6e0bc47b core: Fix test flake in TestContext2Apply_stop
This test was previously not taking into account the fact that the
"Stopping" hook gets sent in the goroutine that calls ctx.Stop, whereas
all of the others get called from inside ctx.Apply, and so there are no
ordering guarantees for that event in relation to the others.

We now handle the stopping event as a special case that is allowed to
appear anywhere in the sequence as long as it appears. The other events
are still strongly ordered because their ordering is important for
correctness of Terraform Core's own behavior.

As some extra insurance we also now check whether the provider's
ApplyResourceChange and Stop functions both ran and reached a suitable
point of execution related to the stop request, which help to ensure not
only that something called Stop but that Terraform Core correctly
interacted with the provider to handle the stop.
2023-03-15 13:44:33 -07:00
Alan Szlosek Jr
8ab72c249d
add docs meta descriptions (#32771)
* add docs meta descriptions

* cleanups

* remove old docs files

* Apply suggestions from code review

Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>

* remove testing-experiment from nav data

---------

Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>
2023-03-15 15:56:34 -04:00
Craig Wright
62d6e84b60
Merge pull request #32855 from amandabasara/patch-3 2023-03-15 12:43:07 -07:00
Amanda B
956627d661
Update index.mdx New PR for pinning providers
New PR for pinning providers
2023-03-15 14:55:28 -04:00
James Bardin
86c0c3bf80
Merge pull request #32846 from hashicorp/fix-32793
emit a warning msg if invalid CLI configuration file location
2023-03-14 14:58:47 -04:00
Reda Khaled
bf723bd65a fix(init_test.go): in TestInitProvidersLocalOnly tst, set TF_CLI_CONFIG_FILE env var to an empty val 2023-03-14 14:47:43 -04:00
Reda Khaled
fa9d044c58 bugfix(cliconfig.go): emit a warning msg if bad CLI config file path 2023-03-14 14:47:43 -04:00
James Bardin
ccb376a189
Merge pull request #32840 from hashicorp/jbardin/render-output-crash
Prevent nil Colorize options when rendering state outputs
2023-03-14 14:28:03 -04:00
Judith Malnick
fcc6b7ac7f
Add TFC to state doc (#32836)
* add TFC to state doc

* Update website/docs/language/state/index.mdx

Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>

---------

Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>
2023-03-14 09:48:53 -07:00
James Bardin
06f1ceb026 add some output values to the show state test 2023-03-14 10:04:37 -04:00
James Bardin
5ed7f2a798 always use the RenderHuman constructor 2023-03-14 10:04:28 -04:00
Liam Cervante
15ecdb66c8
Fix no-op outputs causing the plan renderer to skip the 'no changes' message (#32820)
* Fix no-op outputs causing the plan renderer to skip the 'no changes' message

* fix imports
2023-03-10 16:19:33 +01:00
James Bardin
843befff29
Merge pull request #32818 from hashicorp/jbardin/nil-plan
return early from opPlan when the plan is nil
2023-03-10 09:46:55 -05:00
James Bardin
c02e7e8754 return early from opPlan when the plan is nil
While the returned plan is checked for nil in most cases, there was
a single point where the plan was dereferenced which could panic. Rather
than always guarding the dereferences, return early when the plan is
nil.
2023-03-10 09:34:47 -05:00
Liam Cervante
af05cbb645
Add support for scoped resources (#32732) 2023-03-10 11:11:10 +01:00
Ashlee M Boyer
bb71273f7a
Merge pull request #32814 from hashicorp/ashleemboyer-patch-1
Update check-legacy-links-format.yml
2023-03-09 13:16:44 -05:00
Ashlee M Boyer
b431b4ab80
Update check-legacy-links-format.yml 2023-03-09 13:12:27 -05:00
Omar Ismail
bea8ad355c
website: v1.4 upgrade guide more guidance on who is affected by the provider cache change 2023-03-09 08:23:20 -08:00
Liam Cervante
32f151f20b
Update HCL to handle type mismatches when applying defaults (#32775)
* add test reproducing terraform crash

* pull latest hcl

* add missing go.sum file

* also fix tests broken by go-cty update
2023-03-09 14:29:58 +01:00
Eugene Dementyev
36aac6b498
Fixes depends_on when overriding modules (#32796)
Fixes #32795
2023-03-09 11:53:13 +01:00
Omar Ismail
189820b6ea
Terraform v1.4 Upgrade Guide 2023-03-07 13:53:22 -08:00
Martin Atkins
2a1d98bc06 website: Document TF_PLUGIN_CACHE_MAY_BREAK_DEPENDENCY_LOCK_FILE env var
This is an alternative way to set the CLI configuration setting
plugin_cache_may_break_dependency_lock_file to activate the transitional
compatibility behavior that prefers to break the dependency lock file if
that would create an additional opportunity to use the plugin cache.
2023-03-06 17:17:48 -08:00
Ashlee M Boyer
e793729602
Delete test-link-rewrites.yml 2023-03-06 15:25:37 -05:00
Alisdair McDiarmid
61e89c84d5
Update CHANGELOG.md 2023-03-06 15:03:40 -05:00
Alisdair McDiarmid
b088c67c60
Merge pull request #32781 from hashicorp/alisdair/rip-earlyconfig
initwd: Port from `earlyconfig` to `configs`
2023-03-06 15:02:06 -05:00
Alisdair McDiarmid
fe5ead7095 Fix typo 2023-03-06 14:36:18 -05:00
Alisdair McDiarmid
584811b829 initwd: Add fake range for fake root module
This isn't currently used anywhere downstream, but it easily could be in
the future, so populating the range with some zero-ish data is more
robust.
2023-03-06 14:35:06 -05:00
Alisdair McDiarmid
83befcb18c
Merge pull request #32782 from hashicorp/alisdair/faster-cloud-tests
10x faster cloud tests
2023-03-06 10:12:17 -05:00
Alisdair McDiarmid
ca53ca00f4 Remove failing DNS query in cloud tests
This test case was making a real DNS call in a non-acceptance test, and
since it was intended to fail it would introduce a several second delay.
This commit replaces the test with a similar one which uses the mocked
disco services for a non-TFE host.

Also restructure the test to use t.Run for clarity.
2023-03-06 09:32:03 -05:00
Alisdair McDiarmid
19e635bfc8 Remove polling delays in run tasks test
These delays are not relevant to the test and result in increased test
execution time.
2023-03-06 09:14:59 -05:00
Alisdair McDiarmid
d9eae48a75 Remove redundant CheckCoreVersionRequirements 2023-03-06 09:14:28 -05:00
Alisdair McDiarmid
5e83ccc1f9 Remove terraform-config-inspect 2023-03-06 09:14:28 -05:00
Alisdair McDiarmid
60ea68edc7 Remove earlyconfig 2023-03-06 09:14:28 -05:00