Merge pull request #204 from mozilla/hotfix/s3_buckets_fix

Update stack.yaml
This commit is contained in:
Brandon Patterson 2023-05-30 10:49:10 -04:00 коммит произвёл GitHub
Родитель 54e282b5eb 40da02f416
Коммит 8c72ee0cb9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 27 добавлений и 32 удалений

Просмотреть файл

@ -1744,7 +1744,6 @@ Resources:
BoxKeysBucket:
Type: AWS::S3::Bucket
Properties:
AccessControl: Private
BucketName: !Join ["-", [ !Sub "${LowerStackName.Value}-box-keys", !Select [0, !Split [ "-", !Select [2, !Split ["/", !Ref "AWS::StackId"]]]]]]
EmptyBuckets:
Type: Custom::EmptyBuckets
@ -1827,7 +1826,6 @@ Resources:
SpeelycaptorScratchBucket:
Type: AWS::S3::Bucket
Properties:
AccessControl: Private
BucketName: !Join ["-", [ !Sub "${LowerStackName.Value}-speelycaptor-scratch", !Select [0, !Split [ "-", !Select [2, !Split ["/", !Ref "AWS::StackId"]]]]]]
SpeelycaptorRole:
Type: AWS::IAM::Role
@ -2251,28 +2249,27 @@ Resources:
AssetsBucket:
Type: AWS::S3::Bucket
Properties:
AccessControl: PublicRead
BucketName: !Join ["-", [ !Sub "${LowerStackName.Value}-assets", !Select [0, !Split [ "-", !Select [2, !Split ["/", !Ref "AWS::StackId"]]]]]]
OwnershipControls:
Rules:
OwnershipControls:
Rules:
- ObjectOwnership: ObjectWriter
PublicAccessBlockConfiguration:
BlockPublicAcls: false
BlockPublicPolicy: false
IgnorePublicAcls: false
RestrictPublicBuckets: false
CorsConfiguration:
PublicAccessBlockConfiguration:
BlockPublicAcls: false
BlockPublicPolicy: false
IgnorePublicAcls: false
RestrictPublicBuckets: false
CorsConfiguration:
CorsRules:
- AllowedHeaders:
- "*"
- "*"
AllowedMethods:
- GET
- HEAD
- GET
- HEAD
AllowedOrigins:
- !Sub "https://${DomainName}"
- !Sub "https://${ShortlinkZoneInfo.Name}"
- !Sub "https://hubs.local:8080"
- !Sub "https://localhost:8080"
- !Sub "https://${DomainName}"
- !Sub "https://${ShortlinkZoneInfo.Name}"
- !Sub "https://hubs.local:8080"
- !Sub "https://localhost:8080"
ExposedHeaders: []
MaxAge: 31536000
AssetsPublicBucketPolicy:
@ -2292,16 +2289,15 @@ Resources:
RootRedirectorBucket:
Type: AWS::S3::Bucket
Properties:
AccessControl: PublicRead
BucketName: !Join ["-", [ !Sub "${LowerStackName.Value}-root-redirector", !Select [0, !Split [ "-", !Select [2, !Split ["/", !Ref "AWS::StackId"]]]]]]
OwnershipControls:
Rules:
- ObjectOwnership: ObjectWriter
Rules:
- ObjectOwnership: ObjectWriter
PublicAccessBlockConfiguration:
BlockPublicAcls: false
BlockPublicPolicy: false
IgnorePublicAcls: false
RestrictPublicBuckets: false
BlockPublicAcls: false
BlockPublicPolicy: false
IgnorePublicAcls: false
RestrictPublicBuckets: false
CorsConfiguration:
CorsRules:
- AllowedHeaders:
@ -2328,16 +2324,15 @@ Resources:
LinkRedirectorBucket:
Type: AWS::S3::Bucket
Properties:
AccessControl: PublicRead
BucketName: !Join ["-", [ !Sub "${LowerStackName.Value}-link-redirector", !Select [0, !Split [ "-", !Select [2, !Split ["/", !Ref "AWS::StackId"]]]]]]
OwnershipControls:
Rules:
- ObjectOwnership: ObjectWriter
Rules:
- ObjectOwnership: ObjectWriter
PublicAccessBlockConfiguration:
BlockPublicAcls: false
BlockPublicPolicy: false
IgnorePublicAcls: false
RestrictPublicBuckets: false
BlockPublicAcls: false
BlockPublicPolicy: false
IgnorePublicAcls: false
RestrictPublicBuckets: false
CorsConfiguration:
CorsRules:
- AllowedHeaders: