mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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{
|
"publicly_accessible": &schema.Schema{
|
||||||
Type: schema.TypeBool,
|
Type: schema.TypeBool,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
|
Computed: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
"vpc_security_group_ids": &schema.Schema{
|
"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))
|
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
Block a user