Skip to content

Commit

Permalink
fix error declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
bkez322 committed Sep 16, 2021
1 parent 863290f commit 295cff2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aws/resource_aws_db_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,9 @@ func resourceAwsDbInstanceCreate(d *schema.ResourceData, meta interface{}) error
}

log.Printf("[DEBUG] DB Instance Replica create configuration: %#v", opts)

err := resource.Retry(iamwaiter.PropagationTimeout, func() *resource.RetryError {
var err error
// Retry for IAM eventual consistency
err = resource.Retry(iamwaiter.PropagationTimeout, func() *resource.RetryError {
_, err = conn.CreateDBInstanceReadReplica(&opts)
if err != nil {
if isAWSErr(err, "InvalidParameterValue", "ENHANCED_MONITORING") {
Expand Down

0 comments on commit 295cff2

Please sign in to comment.