Skip to content

Instantly share code, notes, and snippets.

@hendrixroa
Created March 23, 2023 17:45
Show Gist options
  • Save hendrixroa/36f3cc0d045401cf469667ee0a4a7980 to your computer and use it in GitHub Desktop.
Save hendrixroa/36f3cc0d045401cf469667ee0a4a7980 to your computer and use it in GitHub Desktop.
Creating AWS Cloudwatch log using terraform with prefix for lambda function convention
resource "aws_cloudwatch_log_group" "main" {
name = "/aws/lambda/${var.lambda_function_name}"
retention_in_days = var.log_retention
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment