Ensure AWS Lambda Functions have associated tags

LOW

Description

Using tags, developers can add metadata to each function. Tags can then be used to allocate costs from an AWS bill to individual functions or help identify information system ownership. There is no additional charge for tagging Lambda functions.

Remediation

In AWS Console -

  1. Sign in to AWS Console and go to the Functions page on the Lambda console.
  2. Choose a function to update.
  3. Select Configuration, and then select Tags.
  4. Under Tags, select Manage tags.
  5. Select Add new tag, and then enter a Key and an optional Value. To add more tags, repeat this step.
  6. Select the target queue or topic.
  7. Select Save.

In Terraform -

  1. In the aws_lambda_function resource, configure the tags block with appropriate key-value pairs.

References:
https://docs.aws.amazon.com/lambda/latest/dg/configuration-tags.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function#tags

Policy Details

Rule Reference ID: AC_AWS_0614
CSP: AWS
Remediation Available: Yes
Resource Category: Serverless
Resource Type: Lambda

Frameworks