Resource: aws_vpc_ipam_resource_discovery

Provides an IPAM Resource Discovery resource. IPAM Resource Discoveries are resources meant for multi-organization customers. If you wish to use a single IPAM across multiple orgs, a resource discovery can be created and shared from a subordinate organization to the management organizations IPAM delegated admin account. For a full deployment example, see aws_vpc_ipam_resource_discovery_association resource.

Example Usage

Basic usage:

data "aws_region" "current" {}

resource "aws_vpc_ipam_resource_discovery" "main" {
  description = "My IPAM Resource Discovery"
  operating_regions {
    region_name = data.aws_region.current.name
  }

  tags = {
    Test = "Main"
  }
}

Argument Reference

This resource supports the following arguments:

operating_regions

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 IPAMs using the IPAM resource discovery id. For example:

import {
  to = aws_vpc_ipam_resource_discovery.example
  id = "ipam-res-disco-0178368ad2146a492"
}

Using terraform import, import IPAMs using the IPAM resource discovery id. For example:

% terraform import aws_vpc_ipam_resource_discovery.example ipam-res-disco-0178368ad2146a492