Skip to content

Commit e2c2d0f

Browse files
committed
fix: use proper nag suppression reasoning
1 parent afe794a commit e2c2d0f

6 files changed

Lines changed: 7 additions & 16 deletions

File tree

modules/sagemaker/sagemaker-model-cicd/lib/utils/pipeline-artifacts-bucket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function createPipelineArtifactsBucket(
4848
NagSuppressions.addResourceSuppressions(pipelineArtifactsBucket, [
4949
{
5050
id: 'AwsSolutions-S1',
51-
reason: 'The bucket stores pipeline artifacts, no logging required.',
51+
reason: 'S3 access logging is optional and was not configured for this deployment.',
5252
},
5353
]);
5454
}

modules/sagemaker/sagemaker-model-cicd/test/__snapshots__/mlops-code-pipeline-stack.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ exports[`MLOpsCodePipelineStack to match snapshot 1`] = `
16611661
"rules_to_suppress": [
16621662
{
16631663
"id": "AwsSolutions-S1",
1664-
"reason": "The bucket stores pipeline artifacts, no logging required.",
1664+
"reason": "S3 access logging is optional and was not configured for this deployment.",
16651665
},
16661666
],
16671667
},

modules/sagemaker/sagemaker-model-cicd/test/__snapshots__/model-build-code-pipeline-stack.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ exports[`ModelBuildCodePipelineStack to match snapshot 1`] = `
971971
"rules_to_suppress": [
972972
{
973973
"id": "AwsSolutions-S1",
974-
"reason": "The bucket stores pipeline artifacts, no logging required.",
974+
"reason": "S3 access logging is optional and was not configured for this deployment.",
975975
},
976976
],
977977
},

modules/sagemaker/sagemaker-model-cicd/test/__snapshots__/model-deploy-code-pipeline-stack.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ exports[`ModelDeployCodePipelineStack to match snapshot 1`] = `
367367
"rules_to_suppress": [
368368
{
369369
"id": "AwsSolutions-S1",
370-
"reason": "The bucket stores pipeline artifacts, no logging required.",
370+
"reason": "S3 access logging is optional and was not configured for this deployment.",
371371
},
372372
],
373373
},

modules/sagemaker/sagemaker-templates/templates/batch_inference/product_stack.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ def __init__(
9797
[
9898
{
9999
"id": "AwsSolutions-S1",
100-
"reason": (
101-
"S3 access logs are not required for CI/CD pipeline artifact buckets "
102-
"as they contain build artifacts, not user access data."
103-
),
100+
"reason": "S3 access logging is optional and was not configured for this deployment.",
104101
}
105102
],
106103
)

modules/sagemaker/sagemaker-templates/templates/xgboost_abalone/product_stack.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,7 @@ def __init__(
260260
[
261261
{
262262
"id": "AwsSolutions-S1",
263-
"reason": (
264-
"S3 access logs are not required for ML model artifact buckets as "
265-
"they contain training artifacts and models, not user access data."
266-
),
263+
"reason": "S3 access logging is optional and was not configured for this deployment.",
267264
}
268265
],
269266
)
@@ -272,10 +269,7 @@ def __init__(
272269
[
273270
{
274271
"id": "AwsSolutions-S1",
275-
"reason": (
276-
"S3 access logs are not required for CI/CD pipeline artifact buckets "
277-
"as they contain build artifacts, not user access data."
278-
),
272+
"reason": "S3 access logging is optional and was not configured for this deployment.",
279273
}
280274
],
281275
)

0 commit comments

Comments
 (0)