serverlesspub / cloudformation-deploy-to-s3 Goto Github PK
View Code? Open in Web Editor NEWDeploy your Frontend to S3 using CloudFormation
License: Other
Deploy your Frontend to S3 using CloudFormation
License: Other
Hello, tried this to deploy react app. I'm getting the following error:
User: arn:aws:iam::398816301180:root is not authorized to perform: lambda:GetLayerVersion on resource: arn:aws:lambda:us-east-1:145266761615:layer:s3-deployment:5 (Service: AWSLambdaInternal; Status Code: 403; Error Code: AccessDeniedException; Request ID: 126fc2a9-7b38-11e9-a14d-51e70ccc31e9)
Using:
Resources:
TargetBucket:
Type: AWS::S3::Bucket
SiteSource:
Type: AWS::Serverless::Function
Properties:
Layers:
- arn:aws:lambda:us-east-1:145266761615:layer:s3-deployment:5
CodeUri: web-site/
AutoPublishAlias: live
Runtime: python3.7
Handler: deployer.resource_handler
Timeout: 600
Policies:
- S3FullAccessPolicy:
BucketName: !Ref TargetBucket
DeploymentResource:
Type: AWS::CloudFormation::CustomResource
Properties:
ServiceToken: !GetAtt SiteSource.Arn
Version: !Ref "SiteSource.Version"
TargetBucket: !Ref TargetBucket
Acl: 'public-read'
CacheControlMaxAge: 600
Reference example: https://serverless.pub/deploy-frontend-to-s3-and-sar/
When I deployed example in the same region, receive access denied to use s3-deployment layer(version 4 or 5)
I have a requirement for put files(html, js, css) to s3 bucket, when deploy SAR. please help me check this example.
Hi,
is the source code for arn:aws:lambda:us-east-1:145266761615:layer:s3-deployment:5
available somewhere?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.