Skip to content

Commit

Permalink
Support disabling some AWS regions
Browse files Browse the repository at this point in the history
  • Loading branch information
ramanan-ravi committed Dec 2, 2024
1 parent 934b5d2 commit 47d24b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ func processAwsCredentials(c *ComplianceScanService) {
enabledCloudRegions := strings.Split(c.config.EnabledCloudRegions, ",")
var filteredRegions []string
for _, awsRegion := range enabledCloudRegions {
awsRegion = strings.TrimSpace(awsRegion)
if util.InSlice(awsRegion, util.AWSRegions) {
filteredRegions = append(filteredRegions, awsRegion)
}
Expand All @@ -516,6 +517,7 @@ func processAwsCredentials(c *ComplianceScanService) {
} else {
regionString = "regions = " + string(filteredRegionsJson) + "\n"
}
log.Info().Msgf("AWS regions configured: %s", string(filteredRegionsJson))
}

allAccountIDs := []string{}
Expand Down

0 comments on commit 47d24b7

Please sign in to comment.