diff --git a/aws/aws.go b/aws/aws.go index a6cebe1f..02017cdb 100644 --- a/aws/aws.go +++ b/aws/aws.go @@ -609,7 +609,7 @@ func GetAllResources(targetRegions []string, excludeAfter time.Time, resourceTyp // CloudWatchLogGroup cloudwatchLogGroups := CloudWatchLogGroups{} if IsNukeable(cloudwatchLogGroups.ResourceName(), resourceTypes) { - lgNames, err := getAllCloudWatchLogGroups(session, region, excludeAfter, configObj) + lgNames, err := getAllCloudWatchLogGroups(session, excludeAfter, configObj) if err != nil { return nil, errors.WithStackTrace(err) } diff --git a/aws/cloudwatch_loggroup.go b/aws/cloudwatch_loggroup.go index 725daa63..7af42797 100644 --- a/aws/cloudwatch_loggroup.go +++ b/aws/cloudwatch_loggroup.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-multierror" ) -func getAllCloudWatchLogGroups(session *session.Session, region string, excludeAfter time.Time, configObj config.Config) ([]*string, error) { +func getAllCloudWatchLogGroups(session *session.Session, excludeAfter time.Time, configObj config.Config) ([]*string, error) { svc := cloudwatchlogs.New(session) allLogGroups := []*string{}