Provides a Route53 CIDR location resource.
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"]
}
This resource supports the following arguments:
cidr_blocks
- (Required) CIDR blocks for the location.cidr_collection_id
- (Required) The ID of the CIDR collection to update.name
- (Required) Name for the CIDR location.This resource exports the following attributes in addition to the arguments above:
id
- The CIDR location ID.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