Creates an AWS Lambda function with CloudWatch logs subscription filters and configured retention time.
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.3 |
aws | >= 5.32 |
No providers.
Name | Source | Version |
---|---|---|
destination_1 | ../../ | n/a |
destination_2 | ../../ | n/a |
lambda | ../../ | n/a |
source | ../fixtures | n/a |
No resources.
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_log_group_name | The name of the CloudWatch log group used by your Lambda function. |
function_name | The unique name of your Lambda Function. |
role_name | The name of the IAM role attached to the Lambda Function. |