Resource: aws_service_discovery_public_dns_namespace

Provides a Service Discovery Public DNS Namespace resource.

Example Usage

resource "aws_service_discovery_public_dns_namespace" "example" {
  name        = "hoge.example.com"
  description = "example"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Service Discovery Public DNS Namespace using the namespace ID. For example:

import {
  to = aws_service_discovery_public_dns_namespace.example
  id = "0123456789"
}

Using terraform import, import Service Discovery Public DNS Namespace using the namespace ID. For example:

% terraform import aws_service_discovery_public_dns_namespace.example 0123456789