Skip to content

Commit fd7500c

Browse files
committed
fix checkov warning
1 parent 75167cd commit fd7500c

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

data-collection/deploy/deploy-data-collection.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -543,11 +543,6 @@ Resources:
543543
Runtime: python3.13
544544
FunctionName: !Sub ${ResourcePrefix}analytics-Lambda
545545
Description: "Lambda function to collect general deployment metrics"
546-
Metadata:
547-
checkov:
548-
skip:
549-
- id: CKV_AWS_363
550-
comment: "Using latest available Python runtime"
551546
Handler: index.lambda_handler
552547
MemorySize: 128
553548
Role: !GetAtt LambdaAnalyticsRole.Arn
@@ -578,7 +573,11 @@ Resources:
578573
except Exception as exc:
579574
print(f"Exception occurred: {exc}")
580575
cfnresponse.send(event, context, cfnresponse.SUCCESS, {'Reason': 'success'})
581-
576+
Metadata:
577+
checkov:
578+
skip:
579+
- id: CKV_AWS_363
580+
comment: "Using latest available Python runtime"
582581
LambdaInitRole: #Execution role for the custom resource for Init Lambda
583582
Type: AWS::IAM::Role
584583
Properties:

data-collection/deploy/deploy-in-linked-account.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Resources:
228228
Statement:
229229
- Effect: "Allow"
230230
Action:
231-
- "budgets:DescribeBudgets"
231+
- "budgets:ViewBudget"
232232
- "budgets:ListTagsForResource"
233233
Resource: !Sub "arn:${AWS::Partition}:budgets::${AWS::AccountId}:budget/*"
234234
Roles:

0 commit comments

Comments
 (0)