Create AWS Lambda functions showcasing advanced logging configuration and log subscription filters.
terraform init
terraform plan
terraform apply
Note that this example may create resources which cost money. Run terraform destroy to destroy those resources.
| Name | Version |
|---|---|
| terraform | >= 1.5.7 |
| archive | >= 2.2 |
| aws | >= 6.0 |
| Name | Version |
|---|---|
| archive | >= 2.2 |
| aws | >= 6.0 |
| Name | Source | Version |
|---|---|---|
| fixtures | ../fixtures | n/a |
| logs_subscription | ../../ | n/a |
| sub_1 | ../../ | n/a |
| sub_2 | ../../ | n/a |
| Name | Type |
|---|---|
| aws_cloudwatch_log_group.existing | resource |
| archive_file.subscription_handler | data source |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| region | n/a | string |
"eu-west-1" |
no |
| 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. |