Rename aws_db_instance.subnet_group_name to db_subnet_group_name

This commit is contained in:
Alek Storm 2014-09-18 13:19:24 -07:00
parent ac2aed856e
commit 5b806f0737
1 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ func resource_aws_db_instance_create(
opts.PubliclyAccessible = true
}
if attr = rs.Attributes["subnet_group_name"]; attr != "" {
if attr = rs.Attributes["db_subnet_group_name"]; attr != "" {
opts.DBSubnetGroupName = attr
}
@ -227,7 +227,7 @@ func resource_aws_db_instance_diff(
"username": diff.AttrTypeCreate,
"vpc_security_group_ids": diff.AttrTypeCreate,
"security_group_names": diff.AttrTypeCreate,
"subnet_group_name": diff.AttrTypeCreate,
"db_subnet_group_name": diff.AttrTypeCreate,
"skip_final_snapshot": diff.AttrTypeUpdate,
"final_snapshot_identifier": diff.AttrTypeUpdate,
},
@ -270,7 +270,7 @@ func resource_aws_db_instance_update_state(
s.Attributes["port"] = strconv.Itoa(v.Port)
s.Attributes["status"] = v.DBInstanceStatus
s.Attributes["username"] = v.MasterUsername
s.Attributes["subnet_group_name"] = v.DBSubnetGroup.Name
s.Attributes["db_subnet_group_name"] = v.DBSubnetGroup.Name
// Flatten our group values
toFlatten := make(map[string]interface{})
@ -344,7 +344,7 @@ func resource_aws_db_instance_validation() *config.Validator {
"vpc_security_group_ids.*",
"skip_final_snapshot",
"security_group_names.*",
"subnet_group_name",
"db_subnet_group_name",
},
}
}