Skip to content

Commit 95063a9

Browse files
committed
more work to clean up finding enterprise agents by tag
1 parent 90a9ea5 commit 95063a9

2 files changed

Lines changed: 84 additions & 143 deletions

File tree

lw-inventory/cmd/aws.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ var awsCmd = &cobra.Command{
1313
Run: func(cmd *cobra.Command, args []string) {
1414
regions := lwaws.ParseRegions(cmd)
1515
profiles := lwaws.ParseProfiles(cmd)
16+
tags := lwaws.ParseTags(cmd)
1617
debug := helpers.ParseDebug(cmd)
17-
lwaws.Run(profiles, regions, debug)
18+
lwaws.Run(profiles, regions, debug, tags)
1819
},
1920
}
2021

@@ -23,4 +24,5 @@ func init() {
2324
awsCmd.Flags().StringP("profile", "p", "", "AWS Profile(s) to inventory")
2425
awsCmd.Flags().StringP("region", "r", "", "AWS Region(s) to inventory")
2526
awsCmd.Flags().BoolP("debug", "d", false, "Show Debug Logs")
27+
awsCmd.Flags().StringP("tags", "t", "", "Tags for K8s VMs")
2628
}

0 commit comments

Comments
 (0)