Skip to content

Commit

Permalink
[8.x](backport #2651) cnvm: include full ec2 instance id in findings …
Browse files Browse the repository at this point in the history
…fields (#2690)
  • Loading branch information
mergify[bot] authored Nov 6, 2024
1 parent a266ce7 commit a6225ad
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 a6225ad

Please sign in to comment.