AWS Cloud Map Service

This page shows how to write Terraform and CloudFormation for AWS Cloud Map Service and write them securely.


Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.


Terraform Example (aws_service_discovery_service)

Provides a Service Discovery Service resource.


Example Usage (from GitHub)

resource "aws_service_discovery_service" "kibana" {
  name = "dashboard"
  dns_config {
    namespace_id =
    dns_records {
      ttl = 30
resource "aws_service_discovery_service" "proxy_sd" {
  name = "proxy"

  dns_config {
    namespace_id =

resource "aws_service_discovery_service" "auth" {
  name = "auth"

  dns_config {
    namespace_id =

resource "aws_service_discovery_service" "frontend" {
  name = "front"

  dns_config {
    namespace_id =

resource "aws_service_discovery_service" "kad-kafka-schema-registry" {
  name = "kad-kafka-schema-registry"
  dns_config {
    namespace_id =
    dns_records {
      ttl  = 10

CloudFormation Example (AWS::ServiceDiscovery::Service)

A complex type that contains information about a service, which defines the configuration of the following entities:+ For public and private DNS namespaces, one of the following combinations of DNS records in Amazon Route 53: + A + AAAA + A and AAAA + SRV + CNAME+ Optionally, a health check


Frequently asked questions

What is AWS Cloud Map Service?

AWS Cloud Map Service is a resource for Cloud Map of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Cloud Map Service?

For Terraform, the exNihlio/terraform, MiguelIsaza95/movie-analyst-containers and wwalpha/aws-multi-tenant-with-serverless source code examples are useful. See the Terraform Example section for further details.