diff --git a/lib/policy/resourcePolicySchema.json b/lib/policy/resourcePolicySchema.json index 87a2693d8..37f0369da 100644 --- a/lib/policy/resourcePolicySchema.json +++ b/lib/policy/resourcePolicySchema.json @@ -360,6 +360,9 @@ "type": "string", "const": "2012-10-17" }, + "Id": { + "type": "string" + }, "Statement": { "oneOf": [ { diff --git a/tests/unit/policy/test_policyValidator.spec.js b/tests/unit/policy/test_policyValidator.spec.js index a6a27a9e3..819aadbc7 100644 --- a/tests/unit/policy/test_policyValidator.spec.js +++ b/tests/unit/policy/test_policyValidator.spec.js @@ -16,6 +16,7 @@ const sampleUserPolicy = { }; const sampleResourcePolicy = { Version: '2012-10-17', + Id: 'cd3ad3d9-2776-4ef1-a904-4c229d1642ee', Statement: [ { Sid: 'ResourcePolicy1',