Skip to content

Commit

Permalink
Add ResourceType tag to lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
brahimmouhamou committed Oct 10, 2024
1 parent edfa39a commit 9e7a8de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/findLambdas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ export async function findLambdas({
alias: string
}): Promise<LambdaFunction[]> {
const resourceGroupsTaggingAPI = new ResourceGroupsTaggingAPI()

tags['ResourceType'] = ['lambda']

const resources = await resourceGroupsTaggingAPI.send(
new GetResourcesCommand({
ResourceTypeFilters: ['lambda'],
Expand Down

0 comments on commit 9e7a8de

Please sign in to comment.