12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- {
- "AWSTemplateFormatVersion": "2010-09-09",
- "Description": "The AWS CloudFormation template for this Serverless application",
- "Resources": {
- "ServerlessDeploymentBucket": {
- "Type": "AWS::S3::Bucket",
- "Properties": {
- "BucketEncryption": {
- "ServerSideEncryptionConfiguration": [
- {
- "ServerSideEncryptionByDefault": {
- "SSEAlgorithm": "AES256"
- }
- }
- ]
- }
- }
- },
- "ServerlessDeploymentBucketPolicy": {
- "Type": "AWS::S3::BucketPolicy",
- "Properties": {
- "Bucket": {
- "Ref": "ServerlessDeploymentBucket"
- },
- "PolicyDocument": {
- "Statement": [
- {
- "Action": "s3:*",
- "Effect": "Deny",
- "Principal": "*",
- "Resource": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":s3:::",
- {
- "Ref": "ServerlessDeploymentBucket"
- },
- "/*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":s3:::",
- {
- "Ref": "ServerlessDeploymentBucket"
- }
- ]
- ]
- }
- ],
- "Condition": {
- "Bool": {
- "aws:SecureTransport": false
- }
- }
- }
- ]
- }
- }
- }
- },
- "Outputs": {
- "ServerlessDeploymentBucketName": {
- "Value": {
- "Ref": "ServerlessDeploymentBucket"
- }
- }
- }
- }
|