File tree Expand file tree Collapse file tree 1 file changed +2
-30
lines changed
Expand file tree Collapse file tree 1 file changed +2
-30
lines changed Original file line number Diff line number Diff line change @@ -83,36 +83,8 @@ resource "aws_apigatewayv2_integration" "sqs_integration" {
8383 request_parameters = {
8484 " QueueUrl" = aws_sqs_queue.queue.url
8585 " MessageBody" = " $request.body"
86- # "MessageAttributes" = jsonencode({
87- # "WebhookMessageType" = {
88- # "DataType" = "String"
89- # "StringValue" = "$request.header.X-Syn-Webhook-Message-Type"
90- # }
91- # "WebhookId" = {
92- # "DataType" = "String"
93- # "StringValue" = "$request.header.X-Syn-Webhook-Id"
94- # }
95- # "WebhookMessageId" = {
96- # "DataType" = "String"
97- # "StringValue" = "$request.header.X-Syn-Webhook-Message-Id"
98- # }
99- # "WebhookOwnerId" = {
100- # "DataType" = "String"
101- # "StringValue" = "$request.header.X-Syn-Webhook-Owner-Id"
102- # }
103- # "ContentType" = {
104- # "DataType" = "String"
105- # "StringValue" = "$request.header.Content-Type"
106- # }
107- # "UserAgent" = {
108- # "DataType" = "String"
109- # "StringValue" = "$request.header.User-Agent"
110- # }
111- # "Authorization" = {
112- # "DataType" = "String"
113- # "StringValue" = "$request.header.Authorization"
114- # }
115- # })
86+ " MessageAttributes.content-type.DataType" = " String"
87+ " MessageAttributes.content-type.StringValue" = " $request.header.content-type"
11688 }
11789}
11890
You can’t perform that action at this time.
0 commit comments