Skip to content

Commit

Permalink
fix: bucket policy
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 committed Dec 18, 2024
1 parent 12fdc26 commit e8db74c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@ resources:
SigningBehavior: no-override
SigningProtocol: sigv4

PolicyForCloudFrontPrivateContent:
Type: 'AWS::S3::BucketPolicy'
FrontendBucketPolicy:
Type: AWS::S3::BucketPolicy
Properties:
Bucket: !Ref FrontendBucket
PolicyDocument:
Expand All @@ -509,14 +509,6 @@ resources:
Condition:
StringEquals:
aws:SourceArn: !Sub 'arn:aws:cloudfront::${AWS::AccountId}:distribution/${FrontendDistribution.Id}'

FrontendBucketPolicy:
Type: AWS::S3::BucketPolicy
Properties:
Bucket: !Ref FrontendBucket
PolicyDocument:
Version: '2012-10-17'
Statement:
- Sid: 'AllowSSLRequestsOnly'
Effect: Deny
Principal: '*'
Expand Down

0 comments on commit e8db74c

Please sign in to comment.