Enables the IPAM Service and promotes a delegated administrator.
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
}
This resource supports the following arguments:
delegated_admin_account_id
- (Required)This resource exports the following attributes in addition to the arguments above:
arn
- The Organizations ARN for the delegate account.id
- The Organizations member account ID that you want to enable as the IPAM account.email
- The Organizations email for the delegate account.name
- The Organizations name for the delegate account.service_principal
- The AWS service principal.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