Merge pull request #13279 from joshuaspence/db_param_group_name
Fix DB parameter group name property
This commit is contained in:
commit
ac379e19a7
|
@ -98,6 +98,7 @@ func resourceAwsDbParameterGroupCreate(d *schema.ResourceData, meta interface{})
|
||||||
} else {
|
} else {
|
||||||
groupName = resource.UniqueId()
|
groupName = resource.UniqueId()
|
||||||
}
|
}
|
||||||
|
d.Set("name", groupName)
|
||||||
|
|
||||||
createOpts := rds.CreateDBParameterGroupInput{
|
createOpts := rds.CreateDBParameterGroupInput{
|
||||||
DBParameterGroupName: aws.String(groupName),
|
DBParameterGroupName: aws.String(groupName),
|
||||||
|
|
|
@ -715,11 +715,21 @@ const testAccDBParameterGroupConfig_namePrefix = `
|
||||||
resource "aws_db_parameter_group" "test" {
|
resource "aws_db_parameter_group" "test" {
|
||||||
name_prefix = "tf-test-"
|
name_prefix = "tf-test-"
|
||||||
family = "mysql5.6"
|
family = "mysql5.6"
|
||||||
|
|
||||||
|
parameter {
|
||||||
|
name = "sync_binlog"
|
||||||
|
value = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
const testAccDBParameterGroupConfig_generatedName = `
|
const testAccDBParameterGroupConfig_generatedName = `
|
||||||
resource "aws_db_parameter_group" "test" {
|
resource "aws_db_parameter_group" "test" {
|
||||||
family = "mysql5.6"
|
family = "mysql5.6"
|
||||||
|
|
||||||
|
parameter {
|
||||||
|
name = "sync_binlog"
|
||||||
|
value = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue