Skip to content

Commit e484cee

Browse files
committed
simplify template (unnecessary join)
1 parent 9662395 commit e484cee

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

aws/logs_monitoring/template.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,7 @@ Resources:
734734
Resource:
735735
- Fn::If:
736736
- CreateS3Bucket
737-
- Fn::Join:
738-
- "/"
739-
- - Fn::GetAtt: ForwarderBucket.Arn
740-
- "*"
737+
- Fn::Sub: "${ForwarderBucket.Arn}/*"
741738
- Fn::Sub: "arn:aws:s3:::${DdForwarderExistingBucketName}/*"
742739
Effect: Allow
743740
- Ref: AWS::NoValue
@@ -1062,10 +1059,7 @@ Resources:
10621059
Resource:
10631060
- Fn::If:
10641061
- CreateS3Bucket
1065-
- Fn::Join:
1066-
- "/"
1067-
- - Fn::GetAtt: "ForwarderBucket.Arn"
1068-
- "*"
1062+
- Fn::Sub: "${ForwarderBucket.Arn}/*"
10691063
- Fn::Sub: "arn:aws:s3:::${DdForwarderExistingBucketName}/*"
10701064
- Effect: Allow
10711065
Action:

0 commit comments

Comments
 (0)