You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For many resources it's currently impossible for Terraform to gracefully stop the execution mid-flight as helper/resource.StateChangeConf is not cancellable from above the resource/provider.
Mitchell has done the initial work in hashicorp/terraform#9536 (also includes changes in Azure provider + 1 resource). The goal is to make similar changes to (most) other providers - at least the ones we know leverage helper/resource.StateChangeConf and pass the StopContext down to the resource.StateChangeConf in the resource code.
Just like @radeksimko noticed it would best to put StopContext into schema.ResourceData as it is the easiest place to access it when implementing CRUD actions in providers.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Mar 15, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For many resources it's currently impossible for Terraform to gracefully stop the execution mid-flight as
helper/resource.StateChangeConf
is not cancellable from above the resource/provider.Mitchell has done the initial work in hashicorp/terraform#9536 (also includes changes in Azure provider + 1 resource). The goal is to make similar changes to (most) other providers - at least the ones we know leverage
helper/resource.StateChangeConf
and pass theStopContext
down to theresource.StateChangeConf
in the resource code.Terraform Version
v0.8.5-dev (aa3eda76425a0b936192c6e95e45758e2727ba4b)
Affected Resource(s)
resource.StateChangeConf
, but mainly ones that have long timeouts, e.g. AWS RDS, AWS Elasticsearch DomainTerraform Configuration Files
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
Ctrl+C
(once)References
The text was updated successfully, but these errors were encountered: