Skip to content

aws.rds-subnet-group resource

Description

SubnetGroup is an RDS DB subnet group: the set of VPC subnets an RDS instance or cluster may place its network interfaces in. The group is keyed by name, the one field RDS fixes at create time, so a change to the name replaces the group; the description and subnet set are reconciled in place. The VPC is inferred by RDS from the supplied subnets and is never an input.

Source: internal/service/rds/subnet_group_rsrc.go:43

Example usage:

imports: {
  aws: 'github.com/cloudboss/unobin-library-aws'
}

resources: {
  example: aws.rds-subnet-group {
    # Set input fields here.
  }
}

Inputs

name

string

required

Name is the DB subnet group name. RDS stores it lowercased. It must hold only lowercase letters, digits, hyphen, underscore, period, or space, be no longer than 255 characters, and not equal "default", which RDS reserves for its own default group.

description

string

required

subnet-ids

list(string)

required

tags

map(string)

Input Constraints

Subnet ids rules

subnet-ids must not be empty.

Rule logic
Require
input.subnet-ids != null
&& @core.length(input.subnet-ids) >= 1

Outputs

arn

string

vpc-id

string

supported-network-types

list(string)