Skip to content

Commit

Permalink
🐛 fix aws platform id (#2320)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock authored Oct 21, 2023
1 parent aa591a7 commit bee6886
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/aws/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bee6886

Please sign in to comment.