From bee6886ad33f1f21e21b4cd57e7c41e095b08ae0 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Sat, 21 Oct 2023 11:01:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20aws=20platform=20id=20(#23?= =?UTF-8?q?20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/aws/provider/provider.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/providers/aws/provider/provider.go b/providers/aws/provider/provider.go index 33dde4ecec..b3403122e2 100644 --- a/providers/aws/provider/provider.go +++ b/providers/aws/provider/provider.go @@ -253,7 +253,8 @@ func (s *Service) detect(asset *inventory.Asset, conn plugin.Connection) error { if c, ok := conn.(*connection.AwsConnection); ok { asset.Name = c.Conf.Host asset.Platform = c.PlatformInfo() - asset.PlatformIds = []string{"//platformid.api.mondoo.app/runtime/aws/accounts" + c.AccountId()} + // TODO: do not do this here but in discovery + asset.PlatformIds = []string{"//platformid.api.mondoo.app/runtime/aws/accounts/" + c.AccountId()} } if c, ok := conn.(*awsec2ebsconn.AwsEbsConnection); ok { asset.Platform = c.PlatformInfo()