Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform Lambda Event Source Mapping Error #6

Closed
alimli opened this issue May 24, 2023 · 1 comment
Closed

Terraform Lambda Event Source Mapping Error #6

alimli opened this issue May 24, 2023 · 1 comment

Comments

@alimli
Copy link
Contributor

alimli commented May 24, 2023

terraform apply komutu çıktısında aşağıdaki hata alınıyor. Her iki Inbound ve Outbound lamda fonksiyonu da SQS'den tetiklenmiyor. Bunun için AWS Console'dan manuel olarak event source'ların silinip tekrar eklenmesi gerekiyor.

╷
│ Error: creating Lambda Event Source Mapping (arn:aws:sqs:eu-west-1:392996107206:Telegram-Bot-dev-InboundQueue.fifo): ResourceConflictException: An event source mapping with SQS arn (" arn:aws:sqs:eu-west-1:392996107206:Telegram-Bot-dev-InboundQueue.fifo ") and function (" Telegram-Bot-dev-Inbound ") already exists. Please update or delete the existing mapping with UUID 76d7f67c-e553-45f2-8cfe-144eb094f654
│ {
│   RespMetadata: {
│     StatusCode: 409,
│     RequestID: "15f79d79-98a0-4032-af91-4f3610f6e190"
│   },
│   Message_: "An event source mapping with SQS arn (\" arn:aws:sqs:eu-west-1:392996107206:Telegram-Bot-dev-InboundQueue.fifo \") and function (\" Telegram-Bot-dev-Inbound \") already exists. Please update or delete the existing mapping with UUID 76d7f67c-e553-45f2-8cfe-144eb094f654",
│   Type: "User"
│ }
│ 
│   with aws_lambda_event_source_mapping.event_source_mapping_inbound_function,
│   on inbound_function.tf line 102, in resource "aws_lambda_event_source_mapping" "event_source_mapping_inbound_function":
│  102: resource "aws_lambda_event_source_mapping" "event_source_mapping_inbound_function" {
│ 
╵
╷
│ Error: creating Lambda Event Source Mapping (arn:aws:sqs:eu-west-1:392996107206:Telegram-Bot-dev-OutboundQueue.fifo): ResourceConflictException: An event source mapping with SQS arn (" arn:aws:sqs:eu-west-1:392996107206:Telegram-Bot-dev-OutboundQueue.fifo ") and function (" Telegram-Bot-dev-Outbound ") already exists. Please update or delete the existing mapping with UUID cbf90cca-395e-494c-9061-b71c08418a45
│ {
│   RespMetadata: {
│     StatusCode: 409,
│     RequestID: "ae22f146-9735-4b53-bd69-11a88f664115"
│   },
│   Message_: "An event source mapping with SQS arn (\" arn:aws:sqs:eu-west-1:392996107206:Telegram-Bot-dev-OutboundQueue.fifo \") and function (\" Telegram-Bot-dev-Outbound \") already exists. Please update or delete the existing mapping with UUID cbf90cca-395e-494c-9061-b71c08418a45",
│   Type: "User"
│ }
│ 
│   with aws_lambda_event_source_mapping.event_source_mapping_outbound,
│   on outbound_resources.tf line 107, in resource "aws_lambda_event_source_mapping" "event_source_mapping_outbound":
│  107: resource "aws_lambda_event_source_mapping" "event_source_mapping_outbound" {
│ 
@alimli
Copy link
Contributor Author

alimli commented May 24, 2023

Resolved by manually deleting all event source mappings as described in aws/serverless-application-model#1320 (comment)

@alimli alimli closed this as completed May 24, 2023
myagizmaktav pushed a commit that referenced this issue May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant