Quantcast
Channel: Terraform - HashiCorp Discuss
Viewing all articles
Browse latest Browse all 11468

Unable to setup Mutual TLS Auth for AWS API Gateway Custom Domain

$
0
0

I’m trying to create an AWS API Gateway Custom Domain with Mutual TLS Authentication but it’s giving me an ‘invalid or unknown key’ error.

Code :
resource “aws_api_gateway_domain_name” “api_custom_domain” {

  domain_name               = "${local.api_domain_name}"

  regional_certificate_arn = "${aws_acm_certificate.api_certificate.arn}"

  security_policy = "TLS_1_2"

  endpoint_configuration = {

    types = ["REGIONAL"]

   }

   mutual_tls_authentication = {

     truststore_uri = "s3://${aws_s3_bucket.api_truststore_s3.id}/truststore.pem"

   }

  tags = {

     Name = "${local.api_domain_tags}"

   }

}

Terraform Version : 0.11.10

Error :
“msg”: “Failed to validate Terraform configuration files:\r\n\u001b[31m\n\u001b[1m\u001b[31mError: \u001b[0m\u001b[0m\u001b[1maws_api_gateway_domain_name.api_custom_domain: : invalid or unknown key: mutual_tls_authentication\u001b[0m\n\n\u001b[0m\u001b[0m\u001b[0m\n”

Can anyone please help with this?

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 11468

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>