Commit Graph

30734 Commits

Author SHA1 Message Date
Jarrett Spiker
01bdaebbab
Update website/docs/cli/commands/workspace/delete.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-10-17 11:52:33 -04:00
Jarrett Spiker
3d5dba5c09
Update internal/command/workspace_delete.go
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-10-17 11:52:24 -04:00
Craig Wright
1650bb9892
Merge pull request #31951 from hashicorp/docs-issue-form
Add Documentation Issue form template
2022-10-14 15:35:16 -07:00
Craig Wright
d40b5c7755
Update .github/ISSUE_TEMPLATE/documentation_issue.yml
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-10-14 15:35:08 -07:00
Laura Pacilio
cf47c71291 Revert "Revert "Remove future-facing statements""
This reverts commit cb975a5fff.
2022-10-14 16:14:20 -04:00
Laura Pacilio
514aa0f4e5 Revert "Revert "more content updates for flow""
This reverts commit 58ad930f2d.
2022-10-14 16:14:02 -04:00
Laura Pacilio
58ad930f2d Revert "more content updates for flow"
This reverts commit 84edd84471.
2022-10-14 15:01:59 -04:00
Laura Pacilio
cb975a5fff Revert "Remove future-facing statements"
This reverts commit 0a7e221a49.
2022-10-14 15:00:22 -04:00
Laura Pacilio
84edd84471 more content updates for flow 2022-10-14 14:56:51 -04:00
Laura Pacilio
0a7e221a49 Remove future-facing statements 2022-10-14 14:42:40 -04:00
James Bardin
99608b7da4
Merge pull request #32002 from hashicorp/compliance/add-license
[COMPLIANCE] Update MPL 2.0 LICENSE
2022-10-14 12:04:20 -04:00
Martin Atkins
4bc1696fd1 core: Simplify our idea of "root node" and require it for DynamicExpand
The graph walking mechanism is specified as requiring a graph with a single
root, which in practice means there's exactly one node in the graph
which doesn't have any dependencies.

However, we previously weren't verifying that invariant is true for
subgraphs returned from DynamicExpand. It was working anyway, but it's not
ideal to be relying on a behavior that isn't guaranteed by our underlying
infrastructure.

We also previously had the RootTransformer being a bit clever and trying
to avoid adding a new node if there is already only a single graph with
no dependencies. That special case isn't particularly valuable since
there's no harm in turning a one-node graph into a two-node graph with
an explicit separate root node, and doing that allows us to assume that
the root node is always present and is always exactly terraform.rootNode.

Many existing DynamicExpand implementations were not producing valid
graphs and were previously getting away with it. All of them now produce
properly-rooted graphs that should pass validation, and we will guarantee
that with an explicit check of the DynamicExpand return value before we
try to walk that subgraph. For good measure we also verify that the root
node is exactly terraform.rootNode, even though that isn't strictly
required by our graph walker, just to help us catch potential future bugs
where a DynamicExpand implementation neglects to add our singleton root
node.
2022-10-13 14:01:08 -07:00
Brian Flad
8c93420270
docs/plugin-protocol: Add notes about missing configuration in ReadResource and UpgradeResourceState request messages (#31998)
This opts to inline document these intentional design decisions in the protocol definition as a catch-all for it not being documented elsewhere.

Protocol Buffers files updated via:

```shell
make protobuf
```
2022-10-13 16:29:34 -04:00
Albert Lloveras
9bca926104
. 2022-10-13 19:59:17 +11:00
Albert Lloveras
cf6ffbcc91
. 2022-10-13 19:59:10 +11:00
Albert Lloveras
8feceaf334
Document that NETRC is also respected
The current documentation wording seems to suggest that the only `.netrc` file that will be considered by Terraform is the one sitting in the current user's HOME directory. However, unless I am missing something, Terraform uses `go-getter` to fetch remote modules which mean that the `NETRC` environment variable will also be respected and, in fact, will take precedence over any `.netrc` file on the user's home directory.

See: f7a8c48a1f/netrc.go (L23-L36)
2022-10-13 19:49:10 +11:00
James Bardin
980bf430f3
Merge pull request #31990 from hashicorp/jbardin/orphan-noop
core: A NoOp orphan change has nothing to apply
2022-10-12 14:20:13 -04:00
hashicorp-copywrite[bot]
dcee05d198 [COMPLIANCE] Update MPL 2.0 LICENSE 2022-10-12 17:36:01 +00:00
Tom Bamford
0dac887547
Docs for azurerm generic OIDC 2022-10-12 13:24:49 +01:00
Tom Bamford
82c0b440dc
Fix default values 2022-10-12 13:24:16 +01:00
Jarrett Spiker
9d2e8a4c7e Update workspace delete command docs and help to reference RUM instead of non-empty state 2022-10-11 15:51:17 -04:00
Joe Harrison
a1a976c720
Document provider registry response property shasum
Add a short summary of the `shasum` property in the Provider Registry Protocol's distribution package response documentation.
The Response Properties section of the provider registry protocol does not mention the `shasum` property, but it is required and shown in the example.
2022-10-11 20:28:28 +01:00
James Bardin
3779dbc2af noop orphan change has nothing to apply
An orphaned resource which plans as a NoOp change will have no config.
This is not an error, but there is nothing to do since there are also
no checks to validate. We still leave the change in the plan to keep the
plan as complete as possible, noting all possible changes.

Preventing the node from being added to the graph is awkward, because
the config is attached separately from the diff transformer. This should
not pose any problems however, because there is no longer any state or
config linking the instance to any dependencies in the graph.
2022-10-11 14:30:29 -04:00
Sarah French
73c3994455
Update CHANGELOG.md 2022-10-11 18:58:26 +01:00
Sarah French
89ef27d3b4
Add Private Service Connect endpoint support to GCS backend (#31967)
* Add support for `storage_custom_endpoint` in `gcs` backend

* Add documentation for new `storage_custom_endpoint` endpoint

* Empty commit to trigger Vercel deployment
2022-10-11 18:57:09 +01:00
Brandon Croft
bc1436af53
Merge pull request #31821 from glennsarti/gs/TF-707-add-pre-apply
Add support for pre-apply task results in the cloud backend
2022-10-10 09:18:15 -06:00
Kevin Schu
bc07a54cfd Fix go.sum 2022-10-07 19:24:02 +02:00
Kevin Schu
5842950291 Added support for generic OIDC authentication (eg. Gitlab) and ensure documentation is more clear about it´s usage. oidc_request_url and oidc_request_token are meant to be used for Github Actions only. 2022-10-07 19:23:01 +02:00
Nick Fagerlund
71f1b12226
Merge pull request #31959 from hashicorp/nf/oct22-updown-comments
Clarify some comments in internal/dag
2022-10-06 15:56:48 -07:00
Nick Fagerlund
ccd7bd017e Clarify some comments in internal/dag
When reading this code to check Terraform's graph sorting behavior, I got very
confused about the direction of traversal for several methods. Although some of
these methods would also probably benefit from renames, this commit only updates
their doc comments to use the same directional terminology that we use in the
`Edge` interface (source/target).
2022-10-06 15:10:33 -07:00
Craig Wright
a8d6d5c913
Correcting a line break visual issue. 2022-10-06 10:00:13 -07:00
Craig Wright
b1c720a633
Update .github/ISSUE_TEMPLATE/documentation_issue.yml
Thanks!

Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-10-06 09:58:44 -07:00
Craig Wright
f058392421
Apply suggestions from code review
Thanks!

Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-10-06 09:58:09 -07:00
Matthew Garrell
03bff99caa
Merge pull request #31954 from hashicorp/mg_no_code_prov_followup
Adding mention of no-code to Creating Modules section of TF Language docs
2022-10-06 12:00:39 -04:00
Laura Pacilio
e60bfc0b57
Merge pull request #31953 from hashicorp/add-cont-valid-callout
Add callout to Continuous Validation
2022-10-06 11:58:29 -04:00
Matthew Garrell
a50d8cfc11 Adding mention of no-code to Modules section of TF Language docs 2022-10-06 11:53:53 -04:00
Liam Cervante
4d7ba14f72
Add skeleton action for equivalence tests (#31940) 2022-10-06 12:11:27 +02:00
Laura Pacilio
c8d8536160 Add callout to Continuous Validation 2022-10-05 22:32:37 -04:00
Craig Wright
3afa9bd08e
Create documentation_issue.yml
Closes https://github.com/hashicorp/terraform/issues/31552. 

Adds a new issue form type for documentation issues. Format discussed with docs team.
2022-10-05 14:45:24 -07:00
Laura Pacilio
1faa05b344
Merge pull request #31945 from hashicorp/fix-backends-link
Update backends.mdx
2022-10-05 14:06:05 -04:00
Laura Pacilio
8258070fd5
Update website/docs/language/state/backends.mdx 2022-10-05 13:43:45 -04:00
Laura Pacilio
97c628044a
Update website/docs/language/state/backends.mdx 2022-10-05 13:42:22 -04:00
Laura Pacilio
bed5650e2f
Update backends.mdx 2022-10-05 13:33:30 -04:00
James Bardin
3047b8c13e
Merge pull request #31878 from hashicorp/jbardin/import-plan-new
evaluation of missing instances during import
2022-10-04 12:45:06 -04:00
James Bardin
041d9d3eec unknown evaluation of missing instances in import
Because import does not yet plan new instances as part of the import
process, we can end up evaluating references to resources which have no
state at all. The fallback for this situation could result in slightly
better values during import. The count and for_each values were
technically incorrect, since the length is not known to be zero, and the
single instance does have a concrete type which we can return.
2022-10-04 11:07:16 -04:00
James Bardin
c1e0b046b8
Merge pull request #31917 from hashicorp/jbardin/destroy-edge-cycles
Extract more exact provider name when checking for destroy cycles
2022-10-04 11:06:25 -04:00
James Bardin
c296172be7 test for cycle around aliased provider 2022-10-04 10:59:51 -04:00
James Bardin
036fb9c1bf check detailed provider for destroy edge cycles
When we checked for cycles with destroy edges around providers, it was
only for providers of a different type, but one can do the same thing
with the same provider under different local aliases. Check to see if
the provider also contains an alias, or is defined absolutely in some
other way. The absolute accuracy here isn't critical, since in most
cases these edges are not required for correct results, but finding a
correct and consistent method for determining when these edges are
needed is going to take more research.

There was also an oversight fixed here where the basic
creator->destroyer edges were added _after_ the cycle checks, limiting
their utility. The ordering of the additions was swapped to make sure
all cycles are noticed.
2022-10-04 10:58:36 -04:00
James Bardin
162b7274fa
Merge pull request #31914 from hashicorp/jbardin/ignore-all-legacy
special handling for legacy `ignore_changes = all`
2022-10-04 10:57:23 -04:00
Sarah French
65b531c416
Update CHANGELOG.md 2022-10-04 10:14:45 +01:00