Skip to content

Commit

Permalink
bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.3.0 to 1.52.1 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomk-orca authored Sep 19, 2022
1 parent 6653f58 commit fa7ec3d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/devicefarm v1.13.3
github.com/aws/aws-sdk-go-v2/service/docdb v1.18.1
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.2.1
github.com/aws/aws-sdk-go-v2/service/ec2 v1.3.0
github.com/aws/aws-sdk-go-v2/service/ec2 v1.52.1
github.com/aws/aws-sdk-go-v2/service/ecr v1.17.16
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.13.8
github.com/aws/aws-sdk-go-v2/service/ecs v1.2.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ github.com/aws/aws-sdk-go-v2/service/docdb v1.18.1 h1:9ZqAy/lN0nyIIN8QxTgCCo3BcE
github.com/aws/aws-sdk-go-v2/service/docdb v1.18.1/go.mod h1:77akGGfFx4oiJdbKdCflCVg5kQZDuGQ8Rb6ko7BNv90=
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.2.1 h1:NnYXRukLvkiTnNyZHCCQcZaoWJSeE5Y7tCVPgvTyWfw=
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.2.1/go.mod h1:WqAbIrpO0PSa3AIDxMG12aPPN4D1u99rOFdEfSM/KgY=
github.com/aws/aws-sdk-go-v2/service/ec2 v1.3.0 h1:y82WbYudKuiWx0KuKQheqTQ4RIF8ZHoHvS/rD8HCYCc=
github.com/aws/aws-sdk-go-v2/service/ec2 v1.3.0/go.mod h1:KW2/Fgs+L1m1X53O9hTFpJqPtLyYGbf9j1Ay5xPSy74=
github.com/aws/aws-sdk-go-v2/service/ec2 v1.52.1 h1:A2hit+4GRYOdvs2aJxGhDrrRS17zSa66M+k1IqqgUic=
github.com/aws/aws-sdk-go-v2/service/ec2 v1.52.1/go.mod h1:YbPg6ou7dlvFTJMmbV3zhec+A22S1Ow+ZB6k6xUs9oY=
github.com/aws/aws-sdk-go-v2/service/ecr v1.17.16 h1:Fl+PSDkwzeNnI42wHAfRvreL6r7I2yAVYSCpXan9go4=
github.com/aws/aws-sdk-go-v2/service/ecr v1.17.16/go.mod h1:PKNfdxgouO2lS7Hl3p3LlEOsGS9ZHMu+P6E2ZfrdVxM=
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.13.8 h1:uByYzUJNBrI4LN0H+HMA7yrDWQxe2f9cF7ZkiXltXRo=
Expand Down
2 changes: 1 addition & 1 deletion providers/aws/route_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (g *RouteTableGenerator) createRouteTablesResources(svc *ec2.Client) []terr
))

for _, assoc := range table.Associations {
if assoc.Main {
if *assoc.Main {
// main route table association
resources = append(resources, terraformutils.NewResource(
StringValue(assoc.RouteTableAssociationId),
Expand Down
8 changes: 4 additions & 4 deletions providers/aws/sg.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ func fromPort(ip types.IpPermission) int {
switch {
case *ip.IpProtocol == "icmp":
return -1
case ip.FromPort > 0:
return int(ip.FromPort)
case *ip.FromPort > 0:
return int(*ip.FromPort)
default:
return 0
}
Expand All @@ -370,8 +370,8 @@ func toPort(ip types.IpPermission) int {
switch {
case *ip.IpProtocol == "icmp":
return -1
case ip.ToPort > 0:
return int(ip.ToPort)
case *ip.ToPort > 0:
return int(*ip.ToPort)
default:
return 65536
}
Expand Down
2 changes: 1 addition & 1 deletion providers/aws/transit_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (g *TransitGatewayGenerator) getTransitGatewayRouteTables(svc *ec2.Client)
}
for _, tgwrt := range page.TransitGatewayRouteTables {
// Default route table are automatically created on the tgw creation
if tgwrt.DefaultAssociationRouteTable {
if *tgwrt.DefaultAssociationRouteTable {
continue
} else {
g.Resources = append(g.Resources, terraformutils.NewSimpleResource(
Expand Down

0 comments on commit fa7ec3d

Please sign in to comment.