Sets up an AWS App Mesh virtual gateway with HTTP protocol, access logging, and TLS configuration.

Terraform Template

resource "aws_appmesh_virtual_gateway" "example" {
  mesh_name = "example-service-mesh"
  name = "example-virtual-gateway"

  spec {

    listener {

      port_mapping {
        port = 8080
        protocol = "http"
      }

      tls {
        mode = "STRICT"
      }
    }
  }
}