From 8651d80df39d4b7a26703f08ee83284df219a257 Mon Sep 17 00:00:00 2001 From: vjeffrey Date: Tue, 9 Jan 2024 08:58:06 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=20ensure=20platform=20id=20gets?= =?UTF-8?q?=20set=20for=20no-setup=20awsec2ebs=20scans=20(#2981)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/aws/connection/awsec2ebsconn/provider.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/providers/aws/connection/awsec2ebsconn/provider.go b/providers/aws/connection/awsec2ebsconn/provider.go index 4f3927d168..4e14a0611a 100644 --- a/providers/aws/connection/awsec2ebsconn/provider.go +++ b/providers/aws/connection/awsec2ebsconn/provider.go @@ -153,6 +153,9 @@ func NewAwsEbsConnection(id uint32, conf *inventory.Config, asset *inventory.Ass asset.Connections[0].Options["createdBy"] = "Mondoo" } } + if conf.Options[snapshot.NoSetup] == "true" { + conf.PlatformId = awsec2.MondooInstanceID(i.AccountID, targetRegion, convert.ToString(instanceinfo.InstanceId)) + } asset.PlatformIds = []string{conf.PlatformId} // Mount Volume