From 5b666609dd18028eb279be55b47c71d5be05e5b8 Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Thu, 5 Nov 2020 18:48:42 -0500 Subject: [PATCH] resource/aws_rds_cluster_instance: Add Cluster Identifier to creation error message (#15939) Reference: https://github.com/terraform-providers/terraform-provider-aws/issues/13475 --- aws/resource_aws_rds_cluster_instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/resource_aws_rds_cluster_instance.go b/aws/resource_aws_rds_cluster_instance.go index 71044d1f0c9..4d0f285a916 100644 --- a/aws/resource_aws_rds_cluster_instance.go +++ b/aws/resource_aws_rds_cluster_instance.go @@ -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)