Merge branch 'main' into fix/sgrulesDetailsFetcher
commit
f363461641
|
@ -47,11 +47,11 @@
|
||||||
<main>
|
<main>
|
||||||
{{ if (lt .Coverage 100) }}
|
{{ if (lt .Coverage 100) }}
|
||||||
<form role="search">
|
<form role="search">
|
||||||
<label for="search" class="visuallyhidden">Search Resources:</label>
|
<label for="search" class="visuallyhidden">Search resources by id:</label>
|
||||||
<input type="search" id="search" name="search" placeholder="Search Resources...">
|
<input type="search" id="search" name="search" placeholder="Search resources by id...">
|
||||||
<label for="select" class="visuallyhidden">Select Resource Type:</label>
|
<label for="select" class="visuallyhidden">Select a resource type:</label>
|
||||||
<select id="select" name="select">
|
<select id="select" name="select">
|
||||||
<option value="">Resource Type</option>
|
<option value="">Select a resource type</option>
|
||||||
{{ range $type := getResourceTypes }}
|
{{ range $type := getResourceTypes }}
|
||||||
<option value="{{$type}}">{{ $type }}</option>
|
<option value="{{$type}}">{{ $type }}</option>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -376,11 +376,11 @@ input[type="search"], select {
|
||||||
<main>
|
<main>
|
||||||
|
|
||||||
<form role="search">
|
<form role="search">
|
||||||
<label for="search" class="visuallyhidden">Search Resources:</label>
|
<label for="search" class="visuallyhidden">Search resources by id:</label>
|
||||||
<input type="search" id="search" name="search" placeholder="Search Resources...">
|
<input type="search" id="search" name="search" placeholder="Search resources by id...">
|
||||||
<label for="select" class="visuallyhidden">Select Resource Type:</label>
|
<label for="select" class="visuallyhidden">Select a resource type:</label>
|
||||||
<select id="select" name="select">
|
<select id="select" name="select">
|
||||||
<option value="">Resource Type</option>
|
<option value="">Select a resource type</option>
|
||||||
|
|
||||||
<option value="aws_unmanaged_resource">aws_unmanaged_resource</option>
|
<option value="aws_unmanaged_resource">aws_unmanaged_resource</option>
|
||||||
|
|
||||||
|
|
|
@ -376,11 +376,11 @@ input[type="search"], select {
|
||||||
<main>
|
<main>
|
||||||
|
|
||||||
<form role="search">
|
<form role="search">
|
||||||
<label for="search" class="visuallyhidden">Search Resources:</label>
|
<label for="search" class="visuallyhidden">Search resources by id:</label>
|
||||||
<input type="search" id="search" name="search" placeholder="Search Resources...">
|
<input type="search" id="search" name="search" placeholder="Search resources by id...">
|
||||||
<label for="select" class="visuallyhidden">Select Resource Type:</label>
|
<label for="select" class="visuallyhidden">Select a resource type:</label>
|
||||||
<select id="select" name="select">
|
<select id="select" name="select">
|
||||||
<option value="">Resource Type</option>
|
<option value="">Select a resource type</option>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<input type="reset" value="Reset Filters">
|
<input type="reset" value="Reset Filters">
|
||||||
|
|
|
@ -36,6 +36,7 @@ func (e *EC2RouteEnumerator) Enumerate() ([]resource.Resource, error) {
|
||||||
routeId, _ := aws.CalculateRouteID(routeTable.RouteTableId, route.DestinationCidrBlock, route.DestinationIpv6CidrBlock)
|
routeId, _ := aws.CalculateRouteID(routeTable.RouteTableId, route.DestinationCidrBlock, route.DestinationIpv6CidrBlock)
|
||||||
data := map[string]interface{}{
|
data := map[string]interface{}{
|
||||||
"route_table_id": *routeTable.RouteTableId,
|
"route_table_id": *routeTable.RouteTableId,
|
||||||
|
"origin": *route.Origin,
|
||||||
}
|
}
|
||||||
if route.DestinationCidrBlock != nil && *route.DestinationCidrBlock != "" {
|
if route.DestinationCidrBlock != nil && *route.DestinationCidrBlock != "" {
|
||||||
data["destination_cidr_block"] = *route.DestinationCidrBlock
|
data["destination_cidr_block"] = *route.DestinationCidrBlock
|
||||||
|
|
|
@ -1850,10 +1850,12 @@ func TestEC2Route(t *testing.T) {
|
||||||
{
|
{
|
||||||
DestinationCidrBlock: awssdk.String("1.1.1.1/32"),
|
DestinationCidrBlock: awssdk.String("1.1.1.1/32"),
|
||||||
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
||||||
|
Origin: awssdk.String("CreateRoute"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
DestinationIpv6CidrBlock: awssdk.String("::/0"),
|
DestinationIpv6CidrBlock: awssdk.String("::/0"),
|
||||||
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
||||||
|
Origin: awssdk.String("CreateRoute"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1867,10 +1869,12 @@ func TestEC2Route(t *testing.T) {
|
||||||
{
|
{
|
||||||
DestinationCidrBlock: awssdk.String("0.0.0.0/0"),
|
DestinationCidrBlock: awssdk.String("0.0.0.0/0"),
|
||||||
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
||||||
|
Origin: awssdk.String("CreateRoute"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
DestinationIpv6CidrBlock: awssdk.String("::/0"),
|
DestinationIpv6CidrBlock: awssdk.String("::/0"),
|
||||||
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
||||||
|
Origin: awssdk.String("CreateRoute"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1890,10 +1894,12 @@ func TestEC2Route(t *testing.T) {
|
||||||
{
|
{
|
||||||
DestinationCidrBlock: awssdk.String("10.1.1.0/24"),
|
DestinationCidrBlock: awssdk.String("10.1.1.0/24"),
|
||||||
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
||||||
|
Origin: awssdk.String("CreateRoute"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
DestinationCidrBlock: awssdk.String("10.1.2.0/24"),
|
DestinationCidrBlock: awssdk.String("10.1.2.0/24"),
|
||||||
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
GatewayId: awssdk.String("igw-030e74f73bd67f21b"),
|
||||||
|
Origin: awssdk.String("CreateRoute"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue