Skip to content

Commit

Permalink
removed validation rules for s3prefix/suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
daidokoro committed Jul 16, 2024
1 parent 3b49871 commit 873af8c
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ Rules:
Assertions:
- Assert: !Not [ !Equals [ !Ref DLQS3Bucket, 'none' ] ]
AssertDescription: DLQS3Bucket must be set when EnableDLQ is set to true

ValidateCloudWatchLogs:
RuleCondition: !Not [ !Equals [ !Ref CloudWatchLogGroupName, '' ] ]
Assertions:
Expand All @@ -467,26 +468,6 @@ Rules:
- Assert: !Not [ !Equals [ !Ref CustomDomain, '' ] ]
AssertDescription: CustomDomain must be set when CoralogixRegion is set to Custom

ValidateSQSTopicArnParam:
RuleCondition: !And
- !Not [ !Equals [ !Ref SQSTopicArn, '' ] ]
- !Equals [ !Ref CloudWatchLogGroupName, '' ]
Assertions:
- Assert: !And
- !Equals [ !Ref S3KeyPrefix, '' ]
- !Equals [ !Ref S3KeySuffix, '' ]
AssertDescription: S3Prefix and S3Suffix must be empty when SQSTopicArn is set

ValidateSNSTopicArnParam:
RuleCondition: !And
- !Not [ !Equals [ !Ref SNSTopicArn, '' ] ]
- !Equals [ !Ref CloudWatchLogGroupName, '' ]
Assertions:
- Assert: !And
- !Equals [ !Ref S3KeyPrefix, '' ]
- !Equals [ !Ref S3KeySuffix, '' ]
AssertDescription: S3Prefix and S3Suffix must be empty when SNSTopicArn is set

ValidatePrivateLinkConfig:
RuleCondition: !Equals [ !Ref UsePrivateLink, 'true']
Assertions:
Expand Down Expand Up @@ -931,7 +912,7 @@ Resources:
Properties:
BatchSize: 10
FunctionName: !GetAtt LambdaFunction.Arn
StartingPosition: LATEST
# StartingPosition: LATEST
EventSourceArn: !If
- IsSQSIntegration
- !Ref SQSIntegrationTopicArn
Expand Down

0 comments on commit 873af8c

Please sign in to comment.