Code Monkey home page Code Monkey logo

lambda-cms's Introduction

AWS Lambda as CMS

Welcome to the new world, beyond scalability.

Small CMS application build on top of AWS Lambda, withou instances, database and load balancer.

Now, it's possible to have your entire website hosted no S3 or CloudFront with dynamic content, without API's or even EC2 instances or RDS database.

Getting Started

Steps:

1 - Clone repo

2 - Generate de ZIP file with the NodeJs code for AWS Lambda
		Edit in index.js the path to your bucket. Line 21
		Zip files index.js and node_modules foilder = lambda-cms.zip

3 - Create bucket
		In this example I used "lambda-cms"
		Transform the bucket in static website.

4 - Create Lambda function
		Upload file.zip to your Lambda function
		In this example, I used "lambdaCMS" as lambda function to be invoked.

		IAM ROLE - S3 Access
		In the Lambda Role inside IAM setup, you must attach the policy for Amazon S3 full access, in order of the Lambda function to write the JSON file.

5 - Create IAM user to be authorized to update the website.
		Give to this user permission only to execute invoke Lambda functions.
		Create policy with:

		{
		    "Version": "2015-05-31",
		    "Statement": [
		        {
		            "Effect": "Allow",
		            "Action": [
		                "lambda:*"
		            ],
		            "Resource": "*"
		        }
		    ]
		}


6 - Check your new CMS at index.html and the admin page at admin.html
		Put your AccessKey and your SecretKey and edit the JSON to update your site.

Bugs and Issues

Bug or an issue? Open a new issue here on GitHub.

Creator

AWS Lamba CMS is created and maintained by Jonathan Baraldi - [email protected].

Copyright and License

Copyright 2015. Code released under the [GNU GENERAL PUBLIC LICENSE].

lambda-cms's People

Contributors

jonathanbaraldi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.