AWS Cloud Map Service

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

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (aws_service_discovery_service)

Provides a Service Discovery Service resource.

Parameters

Example Usage (from GitHub)

github-iconexNihlio/terraform
resource "aws_service_discovery_service" "kibana" {
  name = "dashboard"
  dns_config {
    namespace_id = aws_service_discovery_private_dns_namespace.web.id
    dns_records {
      ttl = 30
github-iconMiguelIsaza95/movie-analyst-containers
resource "aws_service_discovery_service" "proxy_sd" {
  name = "proxy"

  dns_config {
    namespace_id = aws_service_discovery_private_dns_namespace.proxy.id

github-iconwwalpha/aws-multi-tenant-with-serverless
resource "aws_service_discovery_service" "auth" {
  name = "auth"

  dns_config {
    namespace_id = aws_service_discovery_private_dns_namespace.saas.id

github-iconyzmw1213/Infra
resource "aws_service_discovery_service" "frontend" {
  name = "front"

  dns_config {
    namespace_id = aws_service_discovery_private_dns_namespace.internal.id

github-iconkanth1222/msk-ecs
resource "aws_service_discovery_service" "kad-kafka-schema-registry" {
  name = "kad-kafka-schema-registry"
  dns_config {
    namespace_id = aws_service_discovery_private_dns_namespace.kad-service-discovery.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

Parameters

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.