Merge pull request #3895 from br0ch0n/rds_pub_access_param
Issue #3894 RDS publicly_accessible param shouldn't force new resource
This commit is contained in:
commit
c262bc72ea
|
@ -146,7 +146,7 @@ func resourceAwsDbInstance() *schema.Resource {
|
||||||
"publicly_accessible": &schema.Schema{
|
"publicly_accessible": &schema.Schema{
|
||||||
Type: schema.TypeBool,
|
Type: schema.TypeBool,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
ForceNew: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
"vpc_security_group_ids": &schema.Schema{
|
"vpc_security_group_ids": &schema.Schema{
|
||||||
|
@ -705,6 +705,11 @@ func resourceAwsDbInstanceUpdate(d *schema.ResourceData, meta interface{}) error
|
||||||
req.MultiAZ = aws.Bool(d.Get("multi_az").(bool))
|
req.MultiAZ = aws.Bool(d.Get("multi_az").(bool))
|
||||||
requestUpdate = true
|
requestUpdate = true
|
||||||
}
|
}
|
||||||
|
if d.HasChange("publicly_accessible") {
|
||||||
|
d.SetPartial("publicly_accessible")
|
||||||
|
req.PubliclyAccessible = aws.Bool(d.Get("publicly_accessible").(bool))
|
||||||
|
requestUpdate = true
|
||||||
|
}
|
||||||
if d.HasChange("storage_type") {
|
if d.HasChange("storage_type") {
|
||||||
d.SetPartial("storage_type")
|
d.SetPartial("storage_type")
|
||||||
req.StorageType = aws.String(d.Get("storage_type").(string))
|
req.StorageType = aws.String(d.Get("storage_type").(string))
|
||||||
|
|
Loading…
Reference in New Issue