website: add destroy provisioners to getting started
This commit is contained in:
parent
3a1140951b
commit
2055885a0f
|
@ -156,7 +156,7 @@ func TestDebugHook_nilArgs(t *testing.T) {
|
||||||
h.PostApply(nil, nil, nil)
|
h.PostApply(nil, nil, nil)
|
||||||
h.PostDiff(nil, nil)
|
h.PostDiff(nil, nil)
|
||||||
h.PostImportState(nil, nil)
|
h.PostImportState(nil, nil)
|
||||||
h.PostProvision(nil, "")
|
h.PostProvision(nil, "", nil)
|
||||||
h.PostProvisionResource(nil, nil)
|
h.PostProvisionResource(nil, nil)
|
||||||
h.PostRefresh(nil, nil)
|
h.PostRefresh(nil, nil)
|
||||||
h.PostStateUpdate(nil)
|
h.PostStateUpdate(nil)
|
||||||
|
|
|
@ -100,6 +100,20 @@ If you create an execution plan with a tainted resource, however, the
|
||||||
plan will clearly state that the resource will be destroyed because
|
plan will clearly state that the resource will be destroyed because
|
||||||
it is tainted.
|
it is tainted.
|
||||||
|
|
||||||
|
## Destroy Provisioners
|
||||||
|
|
||||||
|
Provisioners can also be defined that run only during a destroy
|
||||||
|
operation. These are useful for performing system cleanup, extracting
|
||||||
|
data, etc.
|
||||||
|
|
||||||
|
For many resources, using built-in cleanup mechanisms is recommended
|
||||||
|
if possible (such as init scripts), but provisioners can be used if
|
||||||
|
necessary.
|
||||||
|
|
||||||
|
The getting started guide won't show any destroy provisioner examples.
|
||||||
|
If you need to use destroy provisioners, please
|
||||||
|
[see the provisioner documentation](/docs/provisioners).
|
||||||
|
|
||||||
## Next
|
## Next
|
||||||
|
|
||||||
Provisioning is important for being able to bootstrap instances.
|
Provisioning is important for being able to bootstrap instances.
|
||||||
|
|
Loading…
Reference in New Issue