Skip to content

Commit

Permalink
Ignore propagated routes during table import
Browse files Browse the repository at this point in the history
Similar to how they're ignored when performing a
`resourceAwsRouteTableRead`.

Relates to #5099
  • Loading branch information
richievos committed Jul 5, 2018
1 parent 455093e commit dc2d3a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/import_aws_route_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ func resourceAwsRouteTableImportState(
continue
}

if route.Origin != nil && *route.Origin == "EnableVgwRoutePropagation" {
continue
}

if route.DestinationPrefixListId != nil {
// Skipping because VPC endpoint routes are handled separately
// See aws_vpc_endpoint
Expand Down

0 comments on commit dc2d3a7

Please sign in to comment.