Skip to content

Commit

Permalink
Merge pull request #4392 from hashicorp/b-vpc-endpoint-updates
Browse files Browse the repository at this point in the history
provider/aws: Update VPC Endpoint to correctly set route table ids, a…
  • Loading branch information
catsby committed Dec 22, 2015
2 parents 86776e8 + 3b21fbc commit 791b2f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions builtin/providers/aws/resource_aws_vpc_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ func resourceAwsVPCEndpointRead(d *schema.ResourceData, meta interface{}) error
d.Set("vpc_id", vpce.VpcId)
d.Set("policy", normalizeJson(*vpce.PolicyDocument))
d.Set("service_name", vpce.ServiceName)
d.Set("route_table_ids", vpce.RouteTableIds)
if err := d.Set("route_table_ids", aws.StringValueSlice(vpce.RouteTableIds)); err != nil {
return err
}

return nil
}
Expand Down Expand Up @@ -142,7 +144,7 @@ func resourceAwsVPCEndpointUpdate(d *schema.ResourceData, meta interface{}) erro
}
log.Printf("[DEBUG] VPC Endpoint %q updated", input.VpcEndpointId)

return nil
return resourceAwsVPCEndpointRead(d, meta)
}

func resourceAwsVPCEndpointDelete(d *schema.ResourceData, meta interface{}) error {
Expand Down

0 comments on commit 791b2f0

Please sign in to comment.