Skip to content

Commit c87c58f

Browse files
committed
CG-1334 aws PCI ec2 check 4 fix
1 parent ed3be7b commit c87c58f

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

src/aws/pci-dss-3.2.1/rules/pci-dss-3.2.1-ec2-check-4.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ export default {
3434
accountId
3535
__typename
3636
instanceId
37-
ec2Instance {
38-
arn
39-
}
37+
ec2InstanceAssociationId
4038
}
4139
}`,
4240
resource: 'queryawsEip[*]',
@@ -48,8 +46,8 @@ export default {
4846
notEqual: null,
4947
},
5048
{
51-
path: '@.ec2Instance',
52-
isEmpty: false,
49+
path: '@.ec2InstanceAssociationId',
50+
notEqual: null,
5351
},
5452
],
5553
},

src/aws/pci-dss-3.2.1/tests/pci-dss-3.2.1-ec2-checks.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,7 @@ describe('PCI Data Security Standard: 3.2.1', () => {
199199
{
200200
id: cuid(),
201201
instanceId: cuid(),
202-
ec2Instance: [
203-
{
204-
arn: cuid(),
205-
},
206-
],
202+
ec2InstanceAssociationId: cuid(),
207203
},
208204
],
209205
}
@@ -222,7 +218,7 @@ describe('PCI Data Security Standard: 3.2.1', () => {
222218
{
223219
id: cuid(),
224220
instanceId: null,
225-
ec2Instance: [],
221+
ec2InstanceAssociationId: null,
226222
},
227223
],
228224
}

0 commit comments

Comments
 (0)