-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uploading an image into s3 and getting gradients
- Loading branch information
1 parent
295b3ec
commit 26d3c82
Showing
16 changed files
with
11,609 additions
and
743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
# package directories | ||
node_modules | ||
sample | ||
output.html | ||
jspm_packages | ||
|
||
# Serverless directories | ||
.DS_Store | ||
.build/ | ||
.env | ||
.webpack/ | ||
handler.ts | ||
output.html | ||
package-lock.json | ||
serverless.yml | ||
src/lib/s3.ts | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"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" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.