Skip to content

Commit

Permalink
fixed s3 suffix/prefix and adjust sqs permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
daidokoro committed Jul 16, 2024
1 parent 873af8c commit 7aa208a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +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 Down Expand Up @@ -556,7 +556,7 @@ Resources:

# if SQS topic ARN is set, add policy
- !If
- IsSQSIntegration
- SQSIsSet
- SQSPollerPolicy:
QueueName: !Select [5, !Split [":", !Ref SQSIntegrationTopicArn]]
- !Ref AWS::NoValue
Expand Down Expand Up @@ -806,20 +806,20 @@ Resources:
S3KeyPrefix: !If
- S3KeyPrefixIsSet
- !Ref S3KeyPrefix
- !If
- UseAWSDefaultPrefix
- 'AWSLogs/'
- ''
S3KeySuffix: !If
- S3SuffixIsSet
- !Ref S3KeySuffix
- !If
- UseAWSDefaultCloudTrailSuffix
- '.json.gz'
- !If
- UseAWSDefaultVpcFlowSuffix
- '.log.gz'
- ""
S3KeySuffix: !If
- S3SuffixIsSet
- !Ref S3KeySuffix
- !If
- UseAWSDefaultPrefix
- 'AWSLogs/'
- ''
CoralogixEndpoint: !If
- IsCustomDomain
- !If
Expand Down

0 comments on commit 7aa208a

Please sign in to comment.