spotinst / terraform-provider-spotinst

Terraform Spotinst provider.
https://registry.terraform.io/providers/spotinst/spotinst/latest/docs
Mozilla Public License 2.0
63 stars 56 forks source link

Stateful deallocation is not working #24

Closed kumar-albert closed 5 years ago

kumar-albert commented 5 years ago

We using terraform to create spotinst groups, while destroying, spotinst doesn't remove spotinst AMIs, volumes, network interfaces and snapshots.

kmcgrath commented 5 years ago

@kumar-albert thank you for reaching out.

So that we can replicate on our side can you confirm that you have set all the following to true:

https://www.terraform.io/docs/providers/spotinst/r/elastigroup_aws.html#stateful_deallocation

stateful_deallocation = {
     should_delete_images              = true
     should_delete_network_interfaces  = true
     should_delete_volumes             = true
     should_delete_snapshots           = true
   }

Please also provide the version of the Terraform binary you are using.

kumar-albert commented 5 years ago

Hi Kevin, we using version v0.11.7. Also we kept true for all in our terraform scripts.

Sent from my iPad

On 11-Jan-2019, at 8:12 PM, Kevin McGrath notifications@github.com wrote:

@kumar-albert thank you for reaching out.

So that we can replicate on our side can you confirm that you have set all the following to true:

https://www.terraform.io/docs/providers/spotinst/r/elastigroup_aws.html#stateful_deallocation

stateful_deallocation = { should_delete_images = true should_delete_network_interfaces = true should_delete_volumes = true should_delete_snapshots = true } Please also provide the version of the Terraform binary you are using.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

kumar-albert commented 5 years ago

Also, we tried latest terraform binary, v0.11.11, but still stateful_deallocation not work.

kmcgrath commented 5 years ago

Hello @kumar-albert thank you for the updates. We are tracking this and trying to replicate. Would it be possible for you to open a chat through the Spotinst console so that a CS representative can take a look at your entire setup?