James Bardin
fd742cd544
add e2e test with provider schema capabilities
...
enable destroy planning for the simple providers used in the e2e tests
2022-07-06 13:47:35 -04:00
James Bardin
6706d52832
check PlanDestroy capability in plugins
...
This is most easily handled in the plugin code, without involving
Terraform core.
The biggest change here other than checking the PlanDestroy capability,
is the removal of the schema helper methods in the plugins. With the
addition of the capabilities field, combined with the necessity of
checking diagnostics from the schema, the helpers have outlived their
usefulness. Perhaps there's a better pattern for these repetitive calls,
but for now there isn't too extra verbosity involved.
2022-07-06 13:47:35 -04:00
James Bardin
b9f1a5ac57
add Schema Capabilities to protocol
2022-07-06 13:47:35 -04:00
James Bardin
9487cfba28
add test for planned private data in destroy
2022-07-06 13:47:35 -04:00
James Bardin
96c720517f
fixup broken test fixtures
...
some of the minimal test provider implementations didn't check for null
values.
2022-07-06 13:47:35 -04:00
James Bardin
acba1159e4
add provider metas to destroy plan
2022-07-06 13:47:35 -04:00
James Bardin
ccd2c7820a
plan resource destroy
...
Call PlanResourceDestroy during a destroy plan.
This allows providers two new abilities:
- They can evaluate if the plan is valid, notifying users of any
potential errors before an apply is started, which may not be able to
complete.
- They can inspect and modify their private data during a destroy plan
just like they can with an other plan operation.
2022-07-06 13:47:35 -04:00
James Bardin
e95bfe6d19
fix test mocks to behave when planning destroys
2022-07-06 13:47:35 -04:00
Laura Pacilio
a52b44f0bc
Merge pull request #31385 from hashicorp/fix-readme-again
...
Update README.md
2022-07-05 18:08:37 -04:00
Laura Pacilio
ccb466f3b1
Update README.md
2022-07-05 18:02:19 -04:00
Craig Wright
e3daf4c2a6
Merge pull request #31354 from chtitux/patch-1
...
Update docs/cli/commands/init: add backtick to readonly value
2022-07-05 14:56:19 -07:00
Laura Pacilio
2daee48675
Merge pull request #31351 from hashicorp/update-format-function-page
...
Update format function to mention list, map, and null types
2022-07-05 17:45:11 -04:00
Laura Pacilio
7a11e87631
Add example!
2022-07-05 17:32:39 -04:00
Laura Pacilio
15b59fd6c9
Reorder page items and add note about available types to specific verb descriptions
2022-07-05 17:25:08 -04:00
James Bardin
1214a16a63
Merge pull request #31347 from hashicorp/jbardin/remove-etcdv3
...
remove deprecated etcdv3 backend
2022-07-05 11:50:02 -04:00
Laura Pacilio
8fac3d63d8
Merge pull request #31310 from ianmrose-cm/main
...
Add shell explanation to remote-exec `inline` argument documentation.
2022-07-05 10:47:12 -04:00
CJ
e6d1716644
Merge pull request #31379 from hashicorp/fix-cdktf-link
...
Fix Broken CDKTF Link on Terraform Tools page
2022-07-05 09:35:51 -05:00
Laura Pacilio
69ee6fb6c0
Update terraform-tools.mdx
2022-07-05 10:21:36 -04:00
Ian Rosenbery
1e26403677
Update website/docs/language/resources/provisioners/remote-exec.mdx
...
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-01 14:11:33 -07:00
Martin Atkins
7ed6e87ddd
Update CHANGELOG.md
2022-07-01 09:14:11 -07:00
Martin Atkins
b88e29e473
configs: Show tailored message for optional attrs experiment
...
Since we've both concluded the module_variables_optional_attrs experiment
and made experiments available only in alpha releases in the same minor
release, we accidentally made the more general message about experiments
not being available mask the specific message about the experiment being
concluded.
In order to give better feedback to those who were participating in the
experiment in earlier Terraform releases, we'll retain a minimal exception
to our checks to allow the "experiment has concluded" error message to
shine through if and only if that is the only selected experiment.
2022-07-01 09:08:12 -07:00
James Bardin
7b19acb7eb
Merge pull request #31350 from hashicorp/jbardin/deprecated-backend-docs
...
add deprecation notices to backends
2022-07-01 11:11:48 -04:00
James Bardin
8e8c93b0d5
Update website/docs/language/settings/backends/swift.mdx
...
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-01 11:11:26 -04:00
James Bardin
4e93e1c6f5
Update website/docs/language/settings/backends/manta.mdx
...
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
2022-07-01 11:11:22 -04:00
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
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
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