Tags: jckuester/awsweeper
Tags
Fix: Close Terraform AWS Provider binary (#116) * Fix: Shutdown provider binary when done 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 * Remove aws-sdk-go dependency Only using v2 now * Fix failing tests
Filter resources NOT having a tag (#101) * updated to allow for all resources not matching tag to be removed * better example of use * Refactor NewFilter function * move unmarshal JSON into NewFilter * return error instead of Fatal() * Add tagged filter If true, select all resources with any tag. If false, select all resources without tags. * Check len(tags) == 0 instead of tags != nil * Separate MatchTags and MatchTagged * Add notags filter * Remove notags and allow NOT(key) in tags filter * Update README * Fix using matchTags and matchNoTags together Co-authored-by: Richard Silver <[email protected]>
PreviousNext