Resource: aws_route53_cidr_location

Provides a Route53 CIDR location resource.

Example Usage

resource "aws_route53_cidr_collection" "example" {
  name = "collection-1"
}

resource "aws_route53_cidr_location" "example" {
  cidr_collection_id = aws_route53_cidr_collection.example.id
  name               = "office"
  cidr_blocks        = ["200.5.3.0/24", "200.6.3.0/24"]
}

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 CIDR locations using their the CIDR collection ID and location name. For example:

import {
  to = aws_route53_cidr_location.example
  id = "9ac32814-3e67-0932-6048-8d779cc6f511,office"
}

Using terraform import, import CIDR locations using their the CIDR collection ID and location name. For example:

% terraform import aws_route53_cidr_location.example 9ac32814-3e67-0932-6048-8d779cc6f511,office