Martin Atkins
5573868cd0
core: Check pre- and postconditions for resources and output values
...
If the configuration contains preconditions and/or postconditions for any
objects, we'll check them during evaluation of those objects and generate
errors if any do not pass.
The handling of post-conditions is particularly interesting here because
we intentionally evaluate them _after_ we've committed our record of the
resulting side-effects to the state/plan, with the intent that future
plans against the same object will keep failing until the problem is
addressed either by changing the object so it would pass the precondition
or changing the precondition to accept the current object. That then
avoids the need for us to proactively taint managed resources whose
postconditions fail, as we would for provisioner failures: instead, we can
leave the resolution approach up to the user to decide.
Co-authored-by: Alisdair McDiarmid <alisdair@users.noreply.github.com>
2022-01-31 14:02:53 -05:00
Laura Pacilio
a2f83ef7b6
Try to fix wording so it's clearer and more cohesive
2022-01-28 15:28:35 -05:00
Laura Pacilio
6e80276cc9
Remove invisible space
2022-01-28 14:44:56 -05:00
Martin Atkins
c827c049fe
terraform: Precondition and postcondition blocks generate dependencies
...
If a resource or output value has a precondition or postcondition rule
then anything the condition depends on is a dependency of the object,
because the condition rules will be evaluated as part of visiting the
relevant graph node.
2022-01-28 11:00:29 -05:00
Martin Atkins
9076400436
configs: Decode preconditions and postconditions
...
This allows precondition and postcondition checks to be declared for
resources and output values as long as the preconditions_postconditions
experiment is enabled.
Terraform Core doesn't currently know anything about these features, so
as of this commit declaring them does nothing at all.
2022-01-28 11:00:29 -05:00
Martin Atkins
82c518209d
experiments: New "preconditions_postconditions" experiment
2022-01-28 11:00:29 -05:00
Martin Atkins
4f41a0a1fe
configs: Generalize "VariableValidation" as "CheckRule"
...
This construct of a block containing a condition and an error message will
be useful for other sorts of blocks defining expectations or contracts, so
we'll give it a more generic name in anticipation of it being used in
other situations.
2022-01-28 11:00:29 -05:00
Laura Pacilio
f56c7c1c85
Make language in callouts more user friendly
2022-01-27 17:05:45 -05:00
Laura Pacilio
dca94a9eaf
fix verb tense
2022-01-27 16:58:17 -05:00
Laura Pacilio
aa3a046af3
final nits
2022-01-27 16:56:50 -05:00
Laura Pacilio
1a66861aaf
A couple other tweaks
2022-01-27 16:53:25 -05:00
Laura Pacilio
238396567d
Making replace flag clearer and making plan options clearer
2022-01-27 16:00:08 -05:00
Craig Wright
0900c7e0bb
Merge pull request #30397 from auroat/improve-docs
...
Improve the help.go docs: typo and a more explicit comment.
Merged after discussion with @apparentlymart.
2022-01-27 09:56:25 -08:00
Laura Pacilio
a855f04281
Merge pull request #30428 from hashicorp/fix-last-intro-nits
...
Fixing some final typos and nits
2022-01-27 10:52:30 -05:00
Alisdair McDiarmid
b8709d3690
Merge pull request #30421 from hashicorp/alisdair/plan-write-state-ordering
...
core: Fix plan write/state write ordering bug
2022-01-27 08:56:00 -05:00
Alisdair McDiarmid
64c7743793
Merge pull request #30408 from hashicorp/alisdair/pr-merge-changelog-reminder
...
Add merged pull request reminder 📎
2022-01-27 07:23:13 -05:00
Laura Pacilio
6a02fbaef3
Fixing some final typos and nits that robin found!
2022-01-26 20:06:49 -05:00
Craig Wright
ca02b55fba
Merge pull request #30409 from tyron/fix-module-outputs-reference
...
Fix reference to child module in outputs docs
2022-01-26 15:47:42 -08:00
Laura Pacilio
df745af29f
Merge pull request #30425 from hashicorp/fix-intro-page-images
...
fix image references on intro page
2022-01-26 18:42:53 -05:00
Laura Pacilio
4188c4c518
fix image references on intro page
2022-01-26 18:21:09 -05:00
Laura Pacilio
fb4b5c4d81
Merge pull request #30399 from hashicorp/add-new-intro-docs
...
Revamp Into to Terraform
2022-01-26 17:57:50 -05:00
Laura Pacilio
4ced2181ca
Update SDN tutorials to recommended ones
2022-01-26 16:30:05 -05:00
Laura Pacilio
d5b0f44e37
Update website/intro/index.mdx
...
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-01-26 16:12:12 -05:00
Laura Pacilio
8ab9edf8ca
Update website/intro/index.mdx
...
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-01-26 16:12:04 -05:00
Laura Pacilio
4a8b4b311d
Update website/intro/use-cases.mdx
...
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-01-26 16:11:52 -05:00
Laura Pacilio
2201ebc075
Update website/intro/use-cases.mdx
...
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-01-26 16:11:47 -05:00
Laura Pacilio
2209b00167
Update website/intro/use-cases.mdx
...
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-01-26 16:11:42 -05:00
Laura Pacilio
0539155943
Update website/intro/use-cases.mdx
...
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-01-26 16:11:31 -05:00
Laura Pacilio
283e3c8ddb
Update website/intro/use-cases.mdx
...
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-01-26 16:11:24 -05:00
Laura Pacilio
10b1f85991
Update website/intro/use-cases.mdx
...
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-01-26 16:11:16 -05:00
Laura Pacilio
2402431679
Update website/intro/terraform-editions.mdx
...
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-01-26 16:11:10 -05:00
Laura Pacilio
f767628163
Update website/intro/terraform-editions.mdx
...
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-01-26 16:10:54 -05:00
Laura Pacilio
749507dd6a
Update website/intro/terraform-editions.mdx
...
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-01-26 16:10:34 -05:00
Laura Pacilio
044ed1c65a
Update website/intro/terraform-editions.mdx
...
Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
2022-01-26 16:10:27 -05:00
Alisdair McDiarmid
636499830b
Add merged pull request reminder
2022-01-26 15:52:54 -05:00
Alisdair McDiarmid
e21d5d36f4
core: Fix plan write/state write ordering bug
2022-01-26 15:33:18 -05:00
Laura Pacilio
fb61a3d086
Merge pull request #30235 from hashicorp/fix-remote-backend-references
...
[WIP] Fix remaining remote backend references
2022-01-26 12:01:02 -05:00
Laura Pacilio
9e28fc44cd
Merge branch 'main' into fix-remote-backend-references
2022-01-26 11:47:19 -05:00
Laura Pacilio
53aa84576f
Update website/docs/language/state/remote-state-data.mdx
...
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
2022-01-26 11:43:16 -05:00
Laura Pacilio
1b1b5225a2
Update website/docs/language/state/remote-state-data.mdx
...
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
2022-01-26 11:42:22 -05:00
Laura Pacilio
e9d79f5284
Update website/docs/cli/import/index.mdx
...
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
2022-01-26 11:41:57 -05:00
Laura Pacilio
11a450d341
Final editing pass
2022-01-26 11:18:18 -05:00
kmoe
c849e61635
Merge pull request #30414 from hashicorp/kmoe/remove-dependabot
...
Remove dependabot
2022-01-26 15:47:31 +00:00
Katy Moe
eaf748f24d
remove dependabot
2022-01-26 09:15:01 +00:00
Tyron
322622a0f4
fix reference to module
...
References to child modules should use the resource name, not their path
2022-01-25 20:54:20 -05:00
Alisdair McDiarmid
0d1a04ec53
Merge pull request #30402 from hashicorp/alisdair/remove-website-link-check
...
build: Remove broken website link check job
2022-01-24 17:03:12 -05:00
Alisdair McDiarmid
3676b3b157
build: Remove broken website link check job
2022-01-24 16:57:16 -05:00
Laura Pacilio
9953260083
Merge pull request #30296 from hashicorp/fix-provisioners-content
...
Fix provisioners content
2022-01-24 13:49:28 -05:00
Laura Pacilio
95adde5dc9
Update vs. index page to say "Alternatives" and include a list on the page for SEO
2022-01-24 12:29:54 -05:00
Laura Pacilio
f1b36873e1
Update Use Cases page copy
2022-01-24 12:25:20 -05:00