You must be logged in to view saved presets
Maps an Amazon MQ (RabbitMQ) broker to a Lambda function, including virtual host and authentication configuration.
resource "aws_lambda_event_source_mapping" "example" {
batch_size = 1
enabled = true
event_source_arn = "aws_mq_broker.example.arn"
function_name = "aws_lambda_function.example.arn"
queues = ["example"]
source_access_configuration {
type = "VIRTUAL_HOST"
uri = "/example"
}
source_access_configuration {
type = "BASIC_AUTH"
uri = "aws_secretsmanager_secret_version.example.arn"
}
}