Skip to content

Commit

Permalink
ec2: include full instance id in findings fields
Browse files Browse the repository at this point in the history
  • Loading branch information
orouz committed Oct 30, 2024
1 parent 29e90ed commit 79afa07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/resources/providers/awslib/ec2/ec2_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package ec2

import (
"fmt"
"strings"

"github.com/aws/aws-sdk-go-v2/service/ec2/types"

Expand Down Expand Up @@ -61,7 +60,7 @@ func (i Ec2Instance) GetResourceId() string {
return ""
}

return strings.Split(*i.Instance.InstanceId, "-")[1]
return *i.Instance.InstanceId
}

func (i Ec2Instance) GetResourceType() string {
Expand Down

0 comments on commit 79afa07

Please sign in to comment.