Provides an Neptune subnet group resource.
resource "aws_neptune_subnet_group" "default" {
name = "main"
subnet_ids = [aws_subnet.frontend.id, aws_subnet.backend.id]
tags = {
Name = "My neptune subnet group"
}
}
This resource supports the following arguments:
name
- (Optional, Forces new resource) The name of the neptune subnet group. If omitted, Terraform will assign a random, unique name.name_prefix
- (Optional, Forces new resource) Creates a unique name beginning with the specified prefix. Conflicts with name
.description
- (Optional) The description of the neptune subnet group. Defaults to "Managed by Terraform".subnet_ids
- (Required) A list of VPC subnet IDs.tags
- (Optional) A map of tags to assign to the resource. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
id
- The neptune subnet group name.arn
- The ARN of the neptune subnet group.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import Neptune Subnet groups using the name
. For example:
import {
to = aws_neptune_subnet_group.default
id = "production-subnet-group"
}
Using terraform import
, import Neptune Subnet groups using the name
. For example:
% terraform import aws_neptune_subnet_group.default production-subnet-group