Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Example with CloudWatch logs configuration

Create AWS Lambda functions showcasing advanced logging configuration and log subscription filters.

usage

terraform init
terraform plan
terraform apply

Note that this example may create resources which cost money. Run terraform destroy to destroy those resources.

Requirements

Name Version
terraform >= 1.5.7
archive >= 2.2
aws >= 6.0

Providers

Name Version
archive >= 2.2
aws >= 6.0

Modules

Name Source Version
fixtures ../fixtures n/a
logs_subscription ../../ n/a
sub_1 ../../ n/a
sub_2 ../../ n/a

Resources

Name Type
aws_cloudwatch_log_group.existing resource
archive_file.subscription_handler data source

Inputs

Name Description Type Default Required
region n/a string "eu-west-1" no

Outputs

Name Description
arn The Amazon Resource Name (ARN) identifying your Lambda Function.
cloudwatch_custom_log_group_arn The Amazon Resource Name (ARN) identifying the custom CloudWatch log group used by your Lambda function.
cloudwatch_custom_log_group_name The name of the custom CloudWatch log group.
cloudwatch_existing_log_group_arn The Amazon Resource Name (ARN) identifying the existing CloudWatch log group used by your Lambda function.
cloudwatch_existing_log_group_name The name of the existing CloudWatch log group.
function_name The unique name of your Lambda Function.
role_name The name of the IAM role attached to the Lambda Function.