update-lambda-edge
cloudfront-auth
update-lambda-edge | cloudfront-auth | |
---|---|---|
1 | 6 | |
7 | 593 | |
- | - | |
10.0 | 0.0 | |
over 1 year ago | almost 2 years ago | |
JavaScript | JavaScript | |
- | ISC License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
update-lambda-edge
-
Not able to update more than 4 cache behaviours while attaching latest labmda@edge to Cachebehaviours triggers
In my organisation for the deployment of the latest version of code running on lambda@edge, we have written a script which uses update-lambda-edge npm package to deploy the latest code of lambda and also attach the latest version of it to different CacheBehaviours of CDN. The CLI utility allows only a single CacheBehaviour in single command while attaching the lambda to triggers so for multiple paths we run the command in the loop, till now things were fine, but since yesterday it started failing frequently, upon debugging I found that it was failing on the 5th entry of CacheBehaviour, if we're trying to update 4 behaviours it works fine.
cloudfront-auth
-
I just want to host a static website with Cognito as a guard. How can I do it as simple as possible?
If you already have existing users in google, github, or something like that, maybe look at this https://github.com/Widen/cloudfront-auth and skip cognito.
-
Deploy EventCatalog to AWS CloudFront with Google SSO Access Control via Terraform
This article shows how to deploy your own EventCatalog in AWS CloudFront via Terraform and updates to the Catalog via CI/CD (CircleCi in this case, but can be easily applied to other CI systems). It also shows how to use Lambda@Edge to implement Google SSO / OpenID Connect via the Widen/cloudfront-auth Project.
- Google login to S3 bucket website?
-
What are you using lambda @ edge and cloudfront functions for ?
Using it to allow Google Workspace auth access control to static websites. Leverages https://github.com/Widen/cloudfront-auth
-
Protect your Amazon CloudFront content — Authorization@Edge using cookies
aws.amazon.com Recognition The earlier AWS blog that investigated wiring up Cognito authentication with Lambda@Edge: https://aws.amazon.com/blogs/networking-and-content-delivery/authorizationedge-how-to-use-lambdaedge-and-json-web-tokens-to-enhance-web-application-security/ A gist that shows how to add Basic Authentication using Lambda@Edge: https://gist.github.com/lmakarov/e5984ec16a76548ff2b278c06027f1a4 An open-source project that uses a similar approach to secure CloudFront distributions, but does not yet support Cognito (at the time of this writing): https://github.com/Widen/cloudfront-auth Additional resources Check out the code on GitHub to see how the sample solution is built. You can deploy and run the code yourself: https://github.com/aws-samples/cloudfront-authorization-at-edge. You can deploy the Amazon Cognito resources from the sample solution directly from the AWS Serverless Application Repository. 10
-
Hosting static site on S3 behind authentication
1) Make sure your bucket is private. 2) Set up CloudFront with Origin Access Identity 3) Use Lambda@Edge for authentication.
What are some alternatives?
hyperform - ⚡ Lightweight serverless framework for NodeJS
express-openid-connect - An Express.js middleware to protect OpenID Connect web applications.
cdktf-typescript-aws-s3bucket - AWS S3bucket configuration with typescript and cdktf
google-one-tap - Google One Tap Login
PullPreview - A GitHub Action that starts preview deployments for your pull requests and branches. It can work with any application that has a valid Docker Compose file.
auth0.js - Auth0 headless browser sdk
CICD-Using-Jenkins - Continuous Integration and Continuous Delivery using Jenkins tool.
jwt-decode - Decode JWT tokens; useful for browser applications.
serverless-sharp - Serverless image optimizer for S3, Lambda, and Cloudfront
Grant - OAuth Proxy
serverless-plugin-canary-deployments - Canary deployments for your Serverless application
yup-oauth2 - An oauth2 client implementation providing the Device, Installed, Service Account, and several more flows.