Hi all,
I’m trying to create a Route53 Resolver Query Log config with a CloudWatch log group using terraform as following :
resource "aws_cloudwatch_log_group" "dns-logging" {
name = "/aws/route53/dns-logging"
tags = var.tags
}
// route53 resolver query logging configuration
resource "aws_route53_resolver_query_log_config" "dns-logging" {
name = "default_dns_logging"
destination_arn = aws_cloudwatch_log_group.dns-logging.arn
tags = var.tags
}
but everytime I try to apply the above script I recieve the following error :
Error: error creating Route53 Resolver Query Log Config: InternalServiceErrorException: RSLVR-00200 Internal Service Error, trace ID: “1-62271969-0b95ffb5546470185d40bf40”
on factories\dns-query-logging\dns-query-logging.main.tf line 20, in resource “aws_route53_resolver_query_log_config” “dns-logging”: 20: resource “aws_route53_resolver_query_log_config” “dns-logging” {
setting the DEBUG mode for terraform, I found out that the AWS SDK is retuning back this :
— RESPONSE -------------------------------------- HTTP/2.0 400 Bad Request Content-Length: 142 Content-Type: application/x-amz-json-1.1 Date: Tue, 08 Mar 2022 09:05:25 GMT X-Amzn-Requestid: b3328c9d-c455-47a3-94f1-6c2ed18f8b52
but actually everything seems to be fine with the request.
anyone could help ?