Skip to content

Commit 96fa19e

Browse files
committed
fix(services): fix ssm instance compliance item id
1 parent b486ae4 commit 96fa19e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/services/systemsManagerInstance/format.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,15 @@ export default ({
5050
ComplianceType: complianceType,
5151
ResourceType: complianceResourceType,
5252
ResourceId: resourceId,
53-
Id: id,
53+
Id: complianceItemId,
5454
Title: title,
5555
Status: status,
5656
Severity: severity,
5757
ExecutionSummary: executionSummary,
5858
Details: details,
5959
}) => ({
60-
id,
60+
id: cuid(),
61+
complianceItemId,
6162
complianceType,
6263
resourceType: complianceResourceType,
6364
resourceId,

src/services/systemsManagerInstance/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ type ssmAssociationOverviewAggregatedCount {
3838

3939
type systemsManagerInstanceComplianceItem {
4040
id: String! @id @search(by: [hash])
41+
complianceItemId: String @search(by: [hash, regexp])
4142
complianceType: String @search(by: [hash, regexp])
4243
resourceType: String @search(by: [hash, regexp])
4344
resourceId: String @search(by: [hash, regexp])

0 commit comments

Comments
 (0)