I need to get the Consumer Group ID- resource : aws_lambda_event_source_mapping
paulosud08 opened this issue · 3 comments
I need to get the Consumer Group ID in the block :
amazon_managed_kafka_event_source_config Configuration Block.
Although it is in the document I have been getting an error:
"Error: Unsupported block type
│ on lambda_trigger.tf line 11, in resource "aws_lambda_event_source_mapping" "msk_trigger_consent_renewal":
│ 11: amazon_managed_kafka_event_source_config {
🇧🇷
│ Blocks of type "amazon_managed_kafka_event_source_config" are not expected
│ here.
If your request is for a new feature, please use the Feature request
template.
- Terraform version:
- Provider version(s):
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.4.0"
}
}
backend "s3" {
region = "eu-west-3"
encrypt = true
}
}
Reproduction Code [Required]
resource "aws_lambda_event_source_mapping" "msk_trigger_consent_renewal" {
batch_size = var.lambda_batch_size
event_source_arn = "arn:aws:kafka:${var.aws_region}:${data.aws_caller_identity.account.account_id}:${var.lambda_cluster}"
function_name = module.consent_renewal.arn
starting_position = "TRIM_HORIZON"
topics = [var.lambda_topic]
source_access_configuration {
type = "SASL_SCRAM_512_AUTH"
uri = data.aws_secretsmanager_secret.mskkey.arn
}
amazon_managed_kafka_event_source_config {
consumer_group_id = "mandrake-consent_renewal-${var.environment}"
}
depends_on = [
aws_secretsmanager_secret_policy.lambda_msk,
module.consent_renewal
]
}
Steps to reproduce the behavior:
Expected behavior
Actual behavior
Terminal Output Screenshot(s)
This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue was automatically closed because of stale in 10 days
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.