Skip to content

Commit fc947c2

Browse files
committed
applies minimal message attributes
1 parent 7c1581a commit fc947c2

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

modules/aws-sqs/main.tf

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)