Skip to content

Commit

Permalink
Removed Unnecessary DependsOn
Browse files Browse the repository at this point in the history
  • Loading branch information
nethacker committed May 24, 2024
1 parent fd8660d commit 06d9bcd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cloudtrail-cf-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ Resources:
- s3cloudtrailKeyAlias
Type: AWS::S3::Bucket
DeletionPolicy: Retain
UpdateReplacePolicy: Retain
Properties:
BucketEncryption:
ServerSideEncryptionConfiguration:
Expand All @@ -144,8 +145,6 @@ Resources:
SSEAlgorithm: 'aws:kms'

CloudTrailBucketPolicy:
DependsOn:
- CloudTrailS3Bucket
Type: AWS::S3::BucketPolicy
Properties:
Bucket: !Ref CloudTrailS3Bucket
Expand All @@ -172,8 +171,6 @@ Resources:
MyCloudTrail:
DependsOn:
- CloudTrailS3Bucket
- CloudTrailBucketPolicy
- cloudtrailKey
Type: AWS::CloudTrail::Trail
Properties:
S3BucketName: !Ref CloudTrailS3Bucket
Expand Down

0 comments on commit 06d9bcd

Please sign in to comment.