resource/aws_db_instance: Rename field name
to db_name
to prevent practitioner confusion
#22071
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/rds
Issues and PRs that pertain to the rds service.
Milestone
Most AWS API resources, if they define a field
Name
(or<resource type>Name
), use that field as an identifier for the resource itself, and the corresponding Terraform resource defines a fieldname
.The AWS API resource
DBInstance
uses the fieldDBInstanceIdentifier
to identify the resource and the fieldDBName
for the name of the initial database to create in the instance. The Terraform resource typeaws_db_instance
mapsDBInstanceIdentifier
toidentifier
, matching our naming conventions.aws_db_instance
maps the fieldDBName
toname
, which strips too much of the field name. In addition, there is a substantial amount of practitioner confusion around this unique usage ofname
.In version v4.0 of the Terraform Provider for AWS, the field
name
should be deprecated and the fielddb_name
should be added.Since the data source
aws_db_instance
already uses thedb_<field>
naming pattern for most fields, we could also bring the remainder of the fields on the resource inline with this naming.Community Note
Description
Affected Resources
References
The text was updated successfully, but these errors were encountered: