Skip to content

Commit

Permalink
resource/aws_rds_cluster_instance: Add Cluster Identifier to creation…
Browse files Browse the repository at this point in the history
… error message (#15939)

Reference: #13475
  • Loading branch information
bflad authored Nov 5, 2020
1 parent c8ef076 commit 5b66660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_rds_cluster_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func resourceAwsRDSClusterInstanceCreate(d *schema.ResourceData, meta interface{
resp, err = conn.CreateDBInstance(createOpts)
}
if err != nil {
return fmt.Errorf("error creating RDS DB Instance: %s", err)
return fmt.Errorf("error creating RDS Cluster (%s) Instance: %w", d.Get("cluster_identifier").(string), err)
}

d.SetId(*resp.DBInstance.DBInstanceIdentifier)
Expand Down

0 comments on commit 5b66660

Please sign in to comment.