Commit Graph

30470 Commits

Author SHA1 Message Date
koki-develop
d5df330696 fixed typo: startsswith -> startswith 2022-09-22 08:53:11 +09:00
Alisdair McDiarmid
612e27985f
Merge pull request #31840 from hashicorp/alisdair/1.4
Update main branch version to 1.4.0
2022-09-21 17:43:17 -04:00
Alisdair McDiarmid
b02554cb51
Update main branch version to 1.4.0 2022-09-21 17:27:38 -04:00
Laura Pacilio
31fc22a0d2
Merge pull request #31831 from hashicorp/optional-type-attributes-note
Remove unnecessary version note
2022-09-20 17:01:58 -04:00
Laura Pacilio
9582cc2d0f
Remove unnecessary version note 2022-09-20 16:25:51 -04:00
Laura Pacilio
0d35127efa
Merge pull request #31818 from hashicorp/fix-internals-overview
Add internals overview page to navigation
2022-09-20 14:05:35 -04:00
James Bardin
3e281e1eda default optional+computed to prior value 2022-09-20 11:00:19 -04:00
Craig Wright
0cc752ee9d
Merge pull request #31812 from martynassateika/patch-1
Update taint.mdx - remove repeated word.
2022-09-19 14:56:45 -07:00
Laura Pacilio
a21154cc52
Update website/data/internals-nav-data.json 2022-09-19 16:30:23 -04:00
Laura Pacilio
0567b22252 Add internals overview page to navigation 2022-09-19 14:40:45 -04:00
Alisdair McDiarmid
99fcb747e9
Revise markup to avoid unwanted checklist UI 2022-09-19 11:40:35 -04:00
Alisdair McDiarmid
6c75e54681 Add initial pull request template
This is intended to add some structure to pull request descriptions, and
encourage peer review of changelog entries before merging a PR.
2022-09-19 10:11:36 -04:00
Martynas Šateika
c726a25fcd
Update taint.mdx 2022-09-19 13:44:14 +01:00
Martin Atkins
65ad73fe03 website: Tombstone callout for the v1.3 removed backends
We've removed the main documentation pages for the backends that are
removed in Terraform v1.3, but we'll leave a small callout note so that
the backend names are still reachable through our search index once the
v1.3 docs are the active version.

The primary goal here is to help folks who have inherited configurations
using older versions of Terraform to learn about features they see in those
configurations, so the main thing here is the link to the older release
docs which include those. However, this is also a good opportunity to link
to the upgrade guide content which describes some possible migration
paths away from these removed backends.
2022-09-16 10:54:30 -07:00
Alisdair McDiarmid
8218ff1fb2
Merge pull request #31797 from hashicorp/alisdair/skip-defaults-apply-for-null
Do not apply type defaults to null values
2022-09-16 09:54:04 -04:00
Bryce Kalow
b54017ef83
website: content updates for developer (#31779)
Co-authored-by: Matthew Garrell <69917312+mgarrell777@users.noreply.github.com>
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
Co-authored-by: Kevin Wang <kwangsan@gmail.com>
Co-authored-by: Judith Malnick <judith@hashicorp.com>
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
Co-authored-by: HashiBot <62622282+hashibot-web@users.noreply.github.com>
2022-09-15 15:54:13 -05:00
Alisdair McDiarmid
551f6316fa Do not apply type defaults to null values
Applying object type defaults to null values can convert null to an
object with partial attributes. This means that even a specified default
value of null will not remain null after variable evaluation.

In turn, the result can then be invalid, if not all attributes in an
object type have defaults specified.

This commit skips the type default application step during config load
and variable evaluation if the default or given value is null of any
type. We still perform type conversion.
2022-09-15 15:32:36 -04:00
Laura Pacilio
b9eb263744
Merge pull request #31788 from hashicorp/remove-provisioners
Remove legacy provisioners from docs
2022-09-14 19:28:29 -04:00
Laura Pacilio
ee61929a9c update note on provisioners page 2022-09-14 18:51:43 -04:00
Laura Pacilio
a891119b61 Remove legacy provisioners from docs 2022-09-14 18:43:48 -04:00
Martin Atkins
a30294372f website: Version-specific upgrade guides (v1.4 branch)
Before our website allowed selecting from older versions of Terraform to
see older documentation we needed to preserve all of the historical
upgrade guides in the latest release branch so that they'd stay available
on the website.

However, our new strategy is for each release to have its own separate
set of documentation selectable using a global version selector. We should
therefore now have only the upgrade guide for the each minor release
on its release branch, with the upgrade guides for earlier releases
instead maintained on their own branches.

However, our v1.1 branch is, as a matter of pragmatism, serving as the home
for the "v1.1 and earlier" documentation, and so there will continue to
be multiple upgrade guides on that branch. For that reason, we're
preserving the URL scheme "upgrade-guides" (plural) even though the URL
now points to only a single version upgrade guide because that causes
readers to land in the correct place if they are on a modern version's
upgrade guide page and they use the version selector to choose the
"v1.1 and earlier" option.
2022-09-14 13:37:04 -07:00
James Bardin
3062d43b39 update go1.19.1 2022-09-14 13:37:33 -04:00
Laura Pacilio
488bbd80fc
Merge pull request #31484 from hashicorp/update-cloud-block-pages
Update Cloud Block Docs
2022-09-09 15:47:35 -04:00
Laura Pacilio
039f884df9
Merge pull request #31547 from hashicorp/clarify-backend-state-storage
Add more context about local backend configuration state file
2022-09-09 15:45:32 -04:00
megan07
629b6dc64a
Merge pull request #31733 from hashicorp/megan_pr_touch_up
removes EnableForcePush and other unrelated code
2022-09-08 12:36:55 -05:00
James Bardin
673d6ca2bc filter computed attrs from ignore_changes=all
When handling ignore_changes=all, we must filter computed attributes
from the prior state to prevent them showing in the configuration. Since
it's not valid for the user to have set computed attributes in the
config, the provider should expect to never see any values there. The
oversight has only now become apparent, as more providers adopt the
plugin-framework which has direct access to the plan-time configuration
value.
2022-09-06 16:29:08 -04:00
Megan Bang
72ba8a869e removes EnableForcePush and other unrelated code 2022-09-02 14:49:25 -05:00
Alisdair McDiarmid
bce43faf2e
Merge pull request #31729 from hashicorp/alisdair/typeexpr-upstreamed
Use upstreamed HCL typexpr package
2022-09-02 10:15:33 -04:00
Alisdair McDiarmid
9d864c2430 Use upstreamed HCL typexpr package
The 2.14.0 release of HCL includes the typeexpr changes we tested here,
so now we can revert to using the HCL package and remove our fork.
2022-09-01 16:03:48 -04:00
Martin Atkins
b8bc1dd721
Update CHANGELOG.md 2022-08-31 09:16:07 -07:00
fatahfattah
8a31f0a6c8
addrs: ModuleSourceRemote.String correctly handles query string in URL
Previously it would append the "subdir" portion onto the query string, producing an invalid result.
2022-08-31 09:13:24 -07:00
kmoe
ba113ff2cd
add destroy option to terraform apply help text (#31714) 2022-08-31 15:13:26 +01:00
kmoe
6ac24d8002
Update CHANGELOG.md 2022-08-31 10:55:30 +01:00
kmoe
a9155e9cfe
Update CHANGELOG.md 2022-08-31 10:22:35 +01:00
James Bardin
522556534d
remove deprecated backends (#31711)
* remove deprecated backends

* remove backend docs

Remove references to deprecated backends from docs.
2022-08-31 10:17:07 +01:00
kmoe
3dbf5cc623
Update CHANGELOG.md 2022-08-31 09:43:38 +01:00
megan07
cb340207d8
Merge pull request #31698 from hashicorp/megan_tf563
Send the JSON state representation to Cloud backend (when available)
2022-08-30 18:10:45 -05:00
Megan Bang
37b7e6ebce don't check diags for errors 2022-08-30 18:03:57 -05:00
Megan Bang
4d749e2813 add warning to diags and show at the end of each command 2022-08-30 17:52:51 -05:00
Megan Bang
5eaa4c45c0 fix imports 2022-08-30 17:27:15 -05:00
Megan Bang
de8bd5826f first part of code review comments 2022-08-30 17:01:44 -05:00
kmoe
477f7fe9a9
Update CHANGELOG.md 2022-08-30 18:04:02 +01:00
kmoe
dec48a8510
plans: indicate when resource deleted due to move (#31695)
Add a new ChangeReason, ReasonDeleteBecauseNoMoveTarget, to provide better
information in cases where a planned deletion is due to moving a resource to
a target not in configuration.

Consider a case in which a resource instance exists in state at address A, and
the user adds a moved block to move A to address B. Whether by the user's
intention or not, address B does not exist in configuration.
Terraform combines the move from A to B, and the lack of configuration for B,
into a single delete action for the (previously nonexistent) entity B.
Prior to this commit, the Terraform plan will report that resource B will be
destroyed because it does not exist in configuration, without explicitly
connecting this to the move.

This commit provides the user an additional clue as to what has happened, in a
case in which Terraform has elided a user's action and inaction into one
potentially destructive change.
2022-08-30 18:01:29 +01:00
Megan Bang
7e5b7b283e updates for code consistency 2022-08-30 09:49:09 -05:00
Megan Bang
dbf99f17b1 add test and removed backend state from cloud 2022-08-29 16:26:06 -05:00
Megan Bang
b504dd1489 update from code consistency checks 2022-08-29 14:29:07 -05:00
Megan Bang
485a1f6777 remove test for error 2022-08-29 14:25:15 -05:00
Megan Bang
bddf6a9b34 updating to use the latest version of cloud/state.go and just pass schemas along to PersistState in the remote state 2022-08-29 14:13:18 -05:00
Megan Bang
b572e57fb3 refactor GetSchemas to include an option to pass in a config 2022-08-29 11:32:14 -05:00
Megan Bang
40263cd861 undo taint test changes 2022-08-29 11:21:06 -05:00