Skip to content

Commit 5ee8471

Browse files
committed
try minimal nested message attributes
1 parent fc947c2 commit 5ee8471

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

modules/aws-sqs/main.tf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,12 @@ resource "aws_apigatewayv2_integration" "sqs_integration" {
8383
request_parameters = {
8484
"QueueUrl" = aws_sqs_queue.queue.url
8585
"MessageBody" = "$request.body"
86-
"MessageAttributes.content-type.DataType" = "String"
87-
"MessageAttributes.content-type.StringValue" = "$request.header.content-type"
86+
"MessageAttributes" = jsonencode({
87+
"ContentType" = {
88+
"DataType" = "String"
89+
"StringValue" = "$request.header.Content-Type"
90+
}
91+
})
8892
}
8993
}
9094

0 commit comments

Comments
 (0)