From 6f02a2df55d151c8216542e62c564cb659b09adb Mon Sep 17 00:00:00 2001 From: Krzysztof Wilczynski Date: Tue, 1 Nov 2016 09:51:46 +0000 Subject: [PATCH] provider/aws: Allow `active` state while waiting for the VPC Peering Connection. (#9754) * Allow `active` state while waiting for the VPC Peering Connection. This commit adds `active` as one of the valid states in which the VPC Peering Connection can be when it being created. Signed-off-by: Krzysztof Wilczynski * Add more valid states. Signed-off-by: Krzysztof Wilczynski --- builtin/providers/aws/resource_aws_vpc_peering_connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/aws/resource_aws_vpc_peering_connection.go b/builtin/providers/aws/resource_aws_vpc_peering_connection.go index 370300cb4..f34170587 100644 --- a/builtin/providers/aws/resource_aws_vpc_peering_connection.go +++ b/builtin/providers/aws/resource_aws_vpc_peering_connection.go @@ -84,8 +84,8 @@ func resourceAwsVPCPeeringCreate(d *schema.ResourceData, meta interface{}) error // Wait for the vpc peering connection to become available log.Printf("[DEBUG] Waiting for VPC Peering Connection (%s) to become available.", d.Id()) stateConf := &resource.StateChangeConf{ - Pending: []string{"pending"}, - Target: []string{"pending-acceptance"}, + Pending: []string{"initiating-request", "provisioning", "pending"}, + Target: []string{"pending-acceptance", "active"}, Refresh: resourceAwsVPCPeeringConnectionStateRefreshFunc(conn, d.Id()), Timeout: 1 * time.Minute, }