Commit Graph

30342 Commits

Author SHA1 Message Date
Craig Wright
ed274f3788
Merge pull request #31647 from nnzv/patch-2
doc: use american english
2022-08-16 15:16:51 -07:00
Craig Wright
aba0ac0fae Migrating from Markdown to Form style Github issues.
The goal of this change is to simplify the process of filing
issues with hashicorp/terraform. In the previous Markdown syntax,
the instructions tended to get washed out in a sea of comment
markers. The new Github Form Issues breaks each section into a form
element, with instructions printed clearly as HTML in the page.

We are further hoping to guide users to the correct repository when
filing provider issues, or the community forums when asking usage
questions.
2022-08-16 12:12:48 -07:00
kmoe
473334cded
Update CHANGELOG.md 2022-08-16 16:54:45 +02:00
kmoe
56a1e0d1c6
allow cross-package move statements (#31556) 2022-08-16 16:52:57 +02:00
Enzo Venturi
235a8b7fcc
typo: use destructions singular form 2022-08-16 01:21:32 -05:00
Enzo Venturi
467f1d32a0
doc: use american english
_Behaviour_ noun is standard in British English.
2022-08-16 01:17:18 -05:00
Martin Atkins
22633a280d website: Optional object attributes handling of null
Previously we didn't describe the interaction between default values and
callers explicitly passing "null".

We treat an explicit null as the same as omitting the attribute when
applying defaults, because that then allows callers to use the typical
pattern for conditional assignment, using explicit null as a fallback
to the module's defined default without having to duplicate that default:
    example = var.foo ? "hello" : null
2022-08-15 14:45:06 -07:00
Alisdair McDiarmid
f79e912a81
Update CHANGELOG.md 2022-08-12 13:55:02 -04:00
Alisdair McDiarmid
27966044ba
Merge pull request #28191 from zimbatm/terraform-fmt-manyargs
command/fmt: support formatting multiple files
2022-08-12 13:53:23 -04:00
Przemysław Dąbek
463340175e
Use consistent naming for path and described parameters 2022-08-12 19:41:12 +02:00
Alisdair McDiarmid
c85ae29419 typeexpr: Replace null attr values with defaults
Previously, when applying defaults to an input variable's given value
before type conversion, we would permit `null` attribute values to
override a specified default. This behaviour is inconsistent with the
intent of the type system underlying Terraform, and represented a
divergence from the treatment of `null` as equivalent to unset which
exists in resources. The same behaviour exists in top-level variable
definitions with `nullable = false`, and we consider this to be the
preferred behaviour here too.

This commit slightly changes default value application such that an
explicit `null` attribute value is treated as equivalent to the
attribute being missing. Default values for attributes will now replace
explicit nulls.
2022-08-12 10:26:36 -04:00
Martin Atkins
2aff67857f website: Remove the legacy v0.11 language documentation
We've been holding on to this snapshot of the old docs from the v0.11
branch ever since the v0.12 release as a courtesy to folks who are still
using Terraform v0.11, since until now we didn't have any way to serve
older versions' docs on the website alongside the current aside from
snapshotting it forward in this way.

However, our website framework now supports publishing multiple versions
at the same time and so the final resting place for these v0.11 docs will
be in the "v1.1" branch, whose content is serving as the documentation
for the "v1.1 and earlier" version selection on the website. While it does
still feel a little awkward to have v0.11 be a subsection of the v1.1
docs, this is at least more honest in that v0.11 _is_ earlier than v1.1,
whereas it's confusing and weird for it to appear under the "v1.2.x"
option and the other versions that will appear later.

In order to avoid breaking incoming links to the old docs we will deploy
this in conjunction with some additional redirects managed by the top-level
terraform-website repository, which will send all paths with the prefix
/language/configuration-0-11 to the equivalent path under
/language/v1.1.x/configuration-0-11 . That redirect rule must exist
outside of this repository because it's a bridge _between_ versions of
the website in this repository, rather than a link to other content within
the same version.
2022-08-11 09:23:38 -07:00
James Bardin
d08e9855f9
Merge pull request #31608 from hashicorp/jbardin/static-validate-warnings
don't lose warnings from static validation
2022-08-10 13:28:15 -04:00
Laura Pacilio
4f431a7599
Merge pull request #31602 from hashicorp/update-readme
Update docs README backporting instructions
2022-08-10 10:42:19 -04:00
James Bardin
9a2b5ceb59 update CHANGELOG.md 2022-08-10 08:57:05 -04:00
James Bardin
893a5336d8 don't lose warnings from static validation
Warnings were dropped from static reference validation if there weren't
also errors in the configuration.
2022-08-09 16:15:56 -04:00
Laura Pacilio
748b42715a
Update website/README.md
Co-authored-by: Matthew Garrell <69917312+mgarrell777@users.noreply.github.com>
2022-08-09 12:18:58 -04:00
Liam Cervante
c4e223c7a0
Only perform the importscheck on added or modified files (#31605) 2022-08-09 16:50:54 +01:00
Laura Pacilio
0e6635b270
Update README.md 2022-08-09 11:47:32 -04:00
Laura Pacilio
96adb97be0
Update README.md 2022-08-09 11:46:48 -04:00
Laura Pacilio
1aa9f49362
Update README.md 2022-08-09 11:45:47 -04:00
Laura Pacilio
4e0c71777c
Update README.md 2022-08-09 11:11:09 -04:00
James Bardin
8354bc46cf
Merge pull request #31576 from hashicorp/jbardin/validate-deprecated-computed
validate deprecated attributes from static traversals
2022-08-09 11:10:13 -04:00
James Bardin
1a5e403329
Merge pull request #31532 from hashicorp/jbardin/static-validate-nested-types
Account for `NestedType` in static traversal validation
2022-08-09 11:08:17 -04:00
Laura Pacilio
19a7527bfe
Update docs README backporting instructions 2022-08-09 11:04:58 -04:00
kmoe
621af43c04
fix missing output for applyable refresh plans (#31469) 2022-08-09 16:03:59 +01:00
James Bardin
25f5a81048 validate deprecated attrs from static traversals
We can't validate that data from deprecated nested attributes is used in
the configuration, but we can at least catch the simple case where a
deprecated attribute is referenced directly.
2022-08-08 09:58:11 -04:00
Aleksandr Melnikov
05944cc0e2
Update fmt.mdx (#31553)
* Update fmt.mdx

Fix insufficient explanation of "-check" option.

* Apply suggestions from code review

Co-authored-by: kmoe <5575356+kmoe@users.noreply.github.com>

Co-authored-by: kmoe <5575356+kmoe@users.noreply.github.com>
2022-08-08 10:04:29 +01:00
zimbatm
7a9ccc03b2
command/fmt: support formatting multiple files
All the code infrastructure was there to support formatting multiple
files already.

This makes `terraform fmt` more flexible and also compliant with the
[treefmt formatter
spec](https://numtide.github.io/treefmt/docs/formatters-spec.html)
2022-08-07 15:02:55 +02:00
Radek Simko
20b1532ba6
Update CHANGELOG.md 2022-08-05 20:46:14 +01:00
Radek Simko
fc62afb6dc
fix: validate implied provider names in submodules (#31573) 2022-08-05 20:44:52 +01:00
Kevin Wang
fbda4382f3
chore: delete /guides files (#31560) 2022-08-05 10:26:48 -04:00
Kevin Wang
f3ef0d9df1
chore: remove /docs (#31558) 2022-08-05 10:26:17 -04:00
James Bardin
fd76846d35 two more locations where Attribute.Type was used 2022-08-04 17:17:00 -04:00
James Bardin
43100fbe39 handle nested types in StaticValidateTraversal
The StaticValidateTraversal code was not taking into account nested
structural types. Rather than create more special cases for checking
Type vs NestedType, we move the ImpliedType method up to the Attribute
to ensure both are used to generate the final type spec.
2022-08-04 17:17:00 -04:00
hc-github-team-tf-core
e57e721c8e Cleanup after v1.3.0-alpha20220803 release 2022-08-03 17:26:17 +00:00
hc-github-team-tf-core
08e958d258
Release v1.3.0-alpha20220803 2022-08-03 17:11:29 +00:00
kmoe
8154a777de
Update CHANGELOG.md 2022-08-03 18:05:48 +01:00
kmoe
c4a00664d7
do not create delete change for nonexistent output (#31471)
If there are outputs in configuration, a destroy plan will always contain a "delete" change for each of these outputs.

This leads to meaningless delete changes being present for outputs which were not present in state and therefore cannot be deleted. Since there is a change in the plan, this plan will then be considered applyable, and the user will be presented with text instructing them to apply a plan in which there are no actual changes.

This commit stops the above from happening in the case of root module outputs.
2022-08-03 17:45:13 +01:00
James Bardin
a857084dfe
Merge pull request #31562 from hashicorp/jbardin/jsonplan-docs
update json plan docs with drift output
2022-08-02 17:35:46 -04:00
James Bardin
a0b66c87cc
Update website/docs/internals/json-format.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-08-02 17:35:30 -04:00
James Bardin
08fed6e296
Update website/docs/internals/json-format.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-08-02 17:35:19 -04:00
James Bardin
1e79f17ed2
Update website/docs/internals/json-format.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-08-02 17:35:09 -04:00
James Bardin
e58d74c0ca update json plan docs with drift output
Add "resource_drift" and "relevant_attributes" to the json plan
documentation.
2022-08-02 16:35:30 -04:00
Laura Pacilio
660ef01afc
Merge pull request #31561 from hashicorp/tiny-fix-readme
Tiny README heading fix
2022-08-02 14:23:29 -04:00
Laura Pacilio
467b592b60
Update README.md 2022-08-02 14:09:08 -04:00
Laura Pacilio
38fe6f761d
Merge pull request #31550 from hashicorp/docs-readme-updates-versioned-docs
Update Docs README to support versioned documentation
2022-08-02 14:08:02 -04:00
Liam Cervante
985325a0fc
Remove -local flag from goimports check (#31555) 2022-08-02 15:08:38 +01:00
Alisdair McDiarmid
d8c14c4295
Merge pull request #31506 from sebhcp/dir-allcaps
replace [dir] with [DIR] for consistency
2022-08-02 07:13:59 -04:00
sebhcp
1ad649c446 goimports on providers.go only 2022-08-01 16:38:03 -05:00