Compare commits

...

2 Commits

Author SHA1 Message Date
Nils Werner
17ba626dba
Merge branch 'master' into fix-cloudformation-s6295 2021-08-16 14:49:42 +02:00
Karim El Ouerghemmi
fe83660b61
Fix alignment in S6295 examples 2021-07-09 10:43:50 +02:00

View File

@ -17,7 +17,8 @@ Note: this rule doesn't check if the value provided to "RetentionInDays" is vali
Runtime: nodejs12.x
Description: Example of Lambda Function
MyFunctionLogGroup: Type: AWS::Logs::LogGroup
MyFunctionLogGroup:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: !Join ['/', ['/aws/lambda', !Ref MyLambdaFunction]]
# Noncompliant: "RetentionInDays" property is not set: logs are kept for ever
@ -32,7 +33,8 @@ Note: this rule doesn't check if the value provided to "RetentionInDays" is vali
Runtime: nodejs12.x
Description: Example of Lambda Function
MyFunctionLogGroup: Type: AWS::Logs::LogGroup
MyFunctionLogGroup:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: !Join ['/', ['/aws/lambda', !Ref MyLambdaFunction]]
RetentionInDays: 30