provider/aws: `aws_db_instance` unexpected state when configurating (#8707)
enhanced monitoring Fixes #8699 When configuring enhanced monitoring, a user got the following error: ``` * aws_db_instance.db: unexpected state 'configuring-enhanced-monitoring', wanted target '[available]'`` We have added this to the list of pending states we have when creating and updating an RDS instance
This commit is contained in:
parent
774817255f
commit
f993b726b0
|
@ -605,7 +605,7 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
|
|||
|
||||
stateConf := &resource.StateChangeConf{
|
||||
Pending: []string{"creating", "backing-up", "modifying", "resetting-master-credentials",
|
||||
"maintenance", "renaming", "rebooting", "upgrading"},
|
||||
"maintenance", "renaming", "rebooting", "upgrading", "configuring-enhanced-monitoring"},
|
||||
Target: []string{"available"},
|
||||
Refresh: resourceAwsDbInstanceStateRefreshFunc(d, meta),
|
||||
Timeout: 40 * time.Minute,
|
||||
|
@ -938,7 +938,7 @@ func resourceAwsDbInstanceUpdate(d *schema.ResourceData, meta interface{}) error
|
|||
|
||||
stateConf := &resource.StateChangeConf{
|
||||
Pending: []string{"creating", "backing-up", "modifying", "resetting-master-credentials",
|
||||
"maintenance", "renaming", "rebooting", "upgrading"},
|
||||
"maintenance", "renaming", "rebooting", "upgrading", "configuring-enhanced-monitoring"},
|
||||
Target: []string{"available"},
|
||||
Refresh: resourceAwsDbInstanceStateRefreshFunc(d, meta),
|
||||
Timeout: 80 * time.Minute,
|
||||
|
|
Loading…
Reference in New Issue