Skip to content

Commit

Permalink
cnvm: include full ec2 instance id in findings fields (#2651)
Browse files Browse the repository at this point in the history
  • Loading branch information
orouz authored Nov 6, 2024
1 parent 04cf164 commit 886be13
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 886be13

Please sign in to comment.