Commit Graph

30239 Commits

Author SHA1 Message Date
James Bardin
65acbbd467
Update website/docs/language/settings/backends/etcdv3.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-01 11:11:16 -04:00
James Bardin
a96cf4cb98
Update website/docs/language/settings/backends/etcd.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-01 11:11:09 -04:00
James Bardin
94de72c638
Update website/docs/language/settings/backends/artifactory.mdx
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-01 11:11:04 -04:00
Théophile Helleboid - chtitux
53a9ac275a
Update docs/cli/commands/init: add backtick to readonly value 2022-07-01 10:54:03 +04:00
Joshua Barton
fd3798b276 tests: add test cases around empty values 2022-06-30 18:30:32 -05:00
Joshua Barton
c73c0ad63c feat: add startswith and endswith funcs 2022-06-30 18:30:32 -05:00
Laura Pacilio
0dfda6a6bd
Merge pull request #31348 from hashicorp/fix-apt-page
Update commands for new Ubuntu version
2022-06-30 17:58:09 -04:00
Laura Pacilio
d0bb3726cd formatting fix 2022-06-30 17:49:41 -04:00
Laura Pacilio
c7f2c03cc3
Update website/docs/cli/install/apt.mdx 2022-06-30 17:41:39 -04:00
Laura Pacilio
91d6c50ccc
Update website/docs/language/functions/format.mdx 2022-06-30 17:35:50 -04:00
Laura Pacilio
e90f9286c2
Update format function to mention list/map types 2022-06-30 17:28:59 -04:00
Laura Pacilio
2839aab709
Update website/docs/cli/install/apt.mdx
Co-authored-by: Robin Norwood <rnorwood@hashicorp.com>
2022-06-30 17:12:18 -04:00
Laura Pacilio
a2798da37b
Update website/docs/cli/install/apt.mdx
Co-authored-by: Robin Norwood <rnorwood@hashicorp.com>
2022-06-30 17:12:13 -04:00
James Bardin
7941b2fbdc add deprecation notices to backends 2022-06-30 16:46:12 -04:00
Laura Pacilio
831627cbe4 final formatting nits and language fixes 2022-06-30 16:13:03 -04:00
Laura Pacilio
bd54ae50a6 fix formatting 2022-06-30 15:46:06 -04:00
Laura Pacilio
add1e7f3ea Merge branch 'fix-apt-page' of github.com:hashicorp/terraform into fix-apt-page 2022-06-30 15:41:22 -04:00
Laura Pacilio
cb022818ee tiny nits 2022-06-30 15:40:48 -04:00
Laura Pacilio
d0664bce0e
Update website/docs/cli/install/apt.mdx 2022-06-30 15:37:54 -04:00
Laura Pacilio
c787d1c768
Update website/docs/cli/install/apt.mdx 2022-06-30 15:37:36 -04:00
Laura Pacilio
c112c858ee Update commands on page to match rel eng guidance 2022-06-30 15:33:23 -04:00
James Bardin
d61d3e9fd8 remove deprecated etcdv3 backend 2022-06-30 15:32:43 -04:00
Liam Cervante
acb79a7545
Standardise how blank lines are added to plan for unchanged blocks (#31330)
* Standardise blank lines added to plan for unchanged blocks

* Fix copy-paste error inside NestingList logic
2022-06-30 13:29:47 +01:00
Liam Cervante
d876e68e2d
Fail global required_version check if it contains any prerelease fields (#31331)
* Fail global required_version check if it contains any prerelease fields

* go mod tidy

* Improve required_version prerelease not supported error string

* Add prerelease version constraint unit tests

* Fix side-effects by populating global diags too soon
2022-06-30 09:58:28 +01:00
James Bardin
02c4ee4ed8 remove go.mod replacement of mock 2022-06-29 16:58:41 -04:00
James Bardin
73c4a4c3b0
Merge pull request #31326 from hashicorp/jbardin/remove-etcd-backend
remove unmaintained etcd backend to update grpc packages
2022-06-29 16:57:27 -04:00
Laura Pacilio
f83c8e1d18
Merge pull request #31011 from dleser/patch-1
Added example with function argument expansion
2022-06-28 16:50:09 -04:00
James Bardin
953c448f9a add simple error indicating backend removal
There are no good options for inserting diagnostics into the backend
lookup, or creating a backend which reports it's removal because none of
the init or GetSchema functions return any errors.

Keep a registry of the removed backend so that we can at least notify
users that a backend was removed vs an invalid name.
2022-06-28 13:58:22 -04:00
ianmrose-cm
a52cf190a6 Update language according to review feedback. 2022-06-28 09:41:12 -07:00
Laura Pacilio
d175076e76
Merge pull request #29865 from hashicorp/laura-update-docs-readme
Update READMEs to help folks figure out how to successfully make docs
2022-06-27 15:48:11 -04:00
Laura Pacilio
4153dac8df
Update README.md
Co-authored-by: Kevin Wang <kwangsan@gmail.com>
2022-06-27 15:40:37 -04:00
Laura Pacilio
5cb3dc9447
Merge pull request #31197 from hashicorp/update-plan-page
Update apply page for style, concision, and clarity
2022-06-27 15:40:11 -04:00
Laura Pacilio
997c851671
Update website/docs/cli/commands/apply.mdx
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
2022-06-27 15:22:53 -04:00
Laura Pacilio
af9c53e3ad
Update website/docs/cli/commands/apply.mdx
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
2022-06-27 15:22:36 -04:00
Laura Pacilio
08a14994d1
Update website/docs/cli/commands/apply.mdx
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
2022-06-27 15:22:26 -04:00
Laura Pacilio
352c55bf0b
Update website/docs/cli/commands/apply.mdx
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
2022-06-27 15:22:18 -04:00
James Bardin
799ab6c951 remove deprecated etcd backend
This allows us to remove the manual replace directives
github.com/dgrijalva/jwt-go and google.golang.org/grpc, so that we can
remove the CVE warnings and update the grpc packages.

While the etcdv3 backend is also marked as deprecated, the changes here
are done in a manner to keep that backend working for the time being.
2022-06-27 15:01:21 -04:00
Laura Pacilio
e76ad76c5b
Update README.md 2022-06-27 11:19:30 -04:00
Laura Pacilio
fd2c8fe764
Update README.md 2022-06-27 11:18:57 -04:00
Laura Pacilio
809be0b0d9
Update README.md 2022-06-27 11:18:28 -04:00
Laura Pacilio
9cb3a6a56b
Update README.md 2022-06-27 11:17:35 -04:00
Laura Pacilio
24afacdada
Update README.md 2022-06-27 11:16:53 -04:00
Laura Pacilio
24c29fa6bb
Update website/README.md 2022-06-27 11:16:30 -04:00
Laura Pacilio
5338ad82d5
Update website/README.md 2022-06-27 11:15:36 -04:00
Laura Pacilio
238fe49cb5
Update website/README.md 2022-06-27 11:15:03 -04:00
Alan Szlosek Jr
ec4935ba5d
Clarify how the ~> version constraint operator works (#31298)
* Clarify how the ~> version contraint operator works

* add comma, clarify the actor

* verbiage tweak

* language cleanup from PR review

Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>

* fix line length

Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-06-27 11:13:14 -04:00
Martin Atkins
126e493818
Update CHANGELOG.md 2022-06-23 14:01:04 -07:00
Martin Atkins
90ea7b0bc5 tfdiags: Treat unknown-related or sensitive-related messages differently
By observing the sorts of questions people ask in the community, and the
ways they ask them, we've inferred that various different people have been
confused by Terraform reporting that a value won't be known until apply
or that a value is sensitive as part of an error message when that message
doesn't actually relate to the known-ness and sensitivity of any value.

Quite reasonably, someone who sees Terraform discussing an unfamiliar
concept like unknown values can assume that it must be somehow relevant to
the problem being discussed, and so in that sense Terraform's current
error messages are giving "too much information": information that isn't
actually helpful in understanding the problem being described, and in the
worst case is a distraction from understanding the problem being described.

With that in mind then, here we introduce an explicit annotation on
diagnostic objects that are directly talking about unknown values or
sensitive values, and then the diagnostic renderer will react to that to
avoid using the terminology "known only after apply" or "sensitive" in the
generated diagnostic annotations unless we're rendering a message that is
explicitly related to one of those topics.

This ends up being a bit of a cross-cutting concern because the code that
generates these diagnostics and the code that renders them are in separate
packages and are not directly aware of each other. With that in mind, the
logic for actually deciding for a particular diagnostic whether it's
flagged in one of these special ways lives inside the tfdiags package as
an intermediation point, which both the diagnostic generator (in the core
package) and the diagnostic renderer can both depend on.
2022-06-23 13:52:23 -07:00
Martin Atkins
31aee9650e command/format: Include function call information in diagnostics
When an error occurs in a function call, the error message text often
includes references to particular parameters in the function signature.

This commit improves that reporting by also including a summary of the
full function signature as part of the diagnostic context in that case,
so a reader can see which parameter is which given that function
arguments are always assigned positionally and so the parameter names
do not appear in the caller's source code.
2022-06-23 13:52:23 -07:00
Martin Atkins
8405f46bc5 tfdiags: Expose the "extra information" concept from HCL
HCL's diagnostic model now includes the idea of "extra information" which
works by attaching an initially-opaque interface value to each diagnostic
and then asking callers to type-assert against that value to sniff for
particular interfaces in order to discover additional machine-readable
context about a certain diagnostic message.

This commit echoes that idea into our tfdiags API, for now only for
diagnostics that are backed by an hcl.Diagnostic. All other implementations
of the diagnostic interface just always return nil, which means they never
carry any "extra information".

As is typical for our wrapping abstraction, we have here also a modified
copy of HCL's helper function for conveniently probing a diagnostic for
information of a particular type, designed to work with our diagnostic
interface instead of HCL's concrete diagnostic type.
2022-06-23 13:52:23 -07:00