Issue #3894 RDS publicly_accessible param shouldn't force new resource
Change-Id: I0a10e050ca1c4f2dde5e04f237de6115723522d8
This commit is contained in:
parent
f148ef73ec
commit
6875e9aaec
|
@ -146,6 +146,7 @@ func resourceAwsDbInstance() *schema.Resource {
|
|||
"publicly_accessible": &schema.Schema{
|
||||
Type: schema.TypeBool,
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
},
|
||||
|
||||
"vpc_security_group_ids": &schema.Schema{
|
||||
|
@ -704,6 +705,11 @@ func resourceAwsDbInstanceUpdate(d *schema.ResourceData, meta interface{}) error
|
|||
req.MultiAZ = aws.Bool(d.Get("multi_az").(bool))
|
||||
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") {
|
||||
d.SetPartial("storage_type")
|
||||
req.StorageType = aws.String(d.Get("storage_type").(string))
|
||||
|
|
Loading…
Reference in New Issue