Resource: aws_vpc_ipam_organization_admin_account

Enables the IPAM Service and promotes a delegated administrator.

Example Usage

Basic usage:

resource "aws_vpc_ipam_organization_admin_account" "example" {
  delegated_admin_account_id = data.aws_caller_identity.delegated.account_id
}

data "aws_caller_identity" "delegated" {
  provider = aws.ipam_delegate_account
}

provider "aws" {
  alias = "ipam_delegate_account"

  # authentication arguments omitted
}

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 IPAMs using the delegate account id. For example:

import {
  to = aws_vpc_ipam_organization_admin_account.example
  id = "12345678901"
}

Using terraform import, import IPAMs using the delegate account id. For example:

% terraform import aws_vpc_ipam_organization_admin_account.example 12345678901