зеркало из https://github.com/mozilla/hubs-ops.git
Merge pull request #204 from mozilla/hotfix/s3_buckets_fix
Update stack.yaml
This commit is contained in:
Коммит
8c72ee0cb9
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче