Skip to content

Commit

Permalink
Suppress the error for missing wildcards and automatic rotation for m…
Browse files Browse the repository at this point in the history
…ock prescription search resources
  • Loading branch information
kris-szlapa committed Nov 11, 2024
1 parent ac0dfb6 commit 7cf2d59
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/cdk/nagSuppressions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,28 @@ export const nagSuppressions = (stack: Stack) => {
}
]
)

safeAddNagSuppression(
stack,
"/StatelessStack/ApiFunctions/MockPrescriptionSearch/LambdaPutLogsManagedPolicy/Resource",
[
{
id: "AwsSolutions-IAM5",
reason: "Suppress error for not having wildcards in permissions. This is a fine as we need to have permissions on all log streams under path"
}
]
)

safeAddNagSuppression(
stack,
"/StatelessStack/ApiFunctions/MockJwtPrivateKey/Resource",
[
{
id: "AwsSolutions-SMG4",
reason: "Suppress error for not having automatic rotation. This is a false positive - it does have rotation enabled"
}
]
)
}
}

Expand Down

0 comments on commit 7cf2d59

Please sign in to comment.