Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Close Terraform AWS Provider binary #116

Merged
merged 3 commits into from
Sep 6, 2020

Conversation

jckuester
Copy link
Owner

@jckuester jckuester commented Sep 4, 2020

The binary process of the Terraform AWS Provider kept running in the background after the awsweeper process terminated. This PR closes the provider process before awsweeper exits.

Other features/fixes in this PR are included by bumping up the
version of terradozer to v0.1.2:

  1. Ignore non-existing resources (of type cty.Nil): This means, AWS instances
    that are in state TERMINATED, NAT gateways that are not available anymore,
    etc. are filtered out and not shown

  2. Fix panic of nil pointer dereference when trying to
    destroy a resource that doesn't exist anymore (however,
    nil pointer shouldn't happen anymore because of 1.)

  3. Offline mode: don't re-download Terraform provider binary
    if binary exists already in ~/.awsweeper/terraform-provider-aws_v2.68.0_x4

@jckuester jckuester force-pushed the fix/close-terraform-provider-binary branch from a22996f to 01da67d Compare September 4, 2020 15:08
The binary process kept running in the background
after the awsweeper process terminated.

Other features/fixes in this commit are included by bumping up the
version of terradozer to v0.1.2:

1. Ignore non-existing resources (of type cty.Nil): This means, AWS instances
   that are in state TERMINATED, NAT gateways that are not available anymore,
   etc. are filtered out and not shown

2. Fix panic of nil pointer dereference when trying to
   destroy a resource that doesn't exist anymore (however,
   nil pointer shouldn't happen anymore because of 1.)

3. Offline mode: don't re-download Terraform provider binary
   if binary exists already in ~/.awsweeper/terraform-provider-aws_v2.68.0_x4
Only using v2 now
@jckuester jckuester force-pushed the fix/close-terraform-provider-binary branch from b3e54e4 to 54998fb Compare September 5, 2020 19:39
Repository owner deleted a comment from codecov-commenter Sep 6, 2020
@jckuester jckuester force-pushed the fix/close-terraform-provider-binary branch from 54998fb to 8e20523 Compare September 6, 2020 11:10
Repository owner deleted a comment from codecov-commenter Sep 6, 2020
@jckuester jckuester merged commit d8fb20e into master Sep 6, 2020
@jckuester jckuester deleted the fix/close-terraform-provider-binary branch September 6, 2020 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant