Giter VIP home page Giter VIP logo

aws-cms-lambda's Introduction

KISTUI AMAZON WEB SERVICES CONTENT MANAGEMENT SYSTEM

Setup a website in a few minutes utilizing the resilient infrastructure of Amazon Webservices! The Content management system will give you access to an Admin GUI with the ability to create content and manage other admistrative users.

DEVELOPER DOCUMENTATION

you can get access to the developer documentation here

API GATEWAY

Example end point of the API gateway

https://gfdu9f5zw2.execute-api.us-east-1.amazonaws.com/prod

INSTALLATION

Installation documentation can be found here

CONTRIBUTORS

Miguel Saavedra Git | LinkedIn
Adam Campbell Git ย  Chris Treadgold Git
John Cave Git

aws-cms-lambda's People

Contributors

adamrcampbell avatar chownema avatar christopher-treadgold avatar johncave avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-cms-lambda's Issues

Hi wonderful project but i found a issue with it. CMS is not deploying to the region i set in command

I successfully setup it specifying region us-east -1 but turned out it's building dynamodb,etc in other region, ap-southeast-1, different region.

PS D:\code-repository\AWS-CMS-LAMBDA> python setup.py my-cms us-east-1
Creating the rest api
Rest api created
Creating iam role: my-cms-aws-cms-Lambda
Role created
Waiting for role to be usable
Creating lambda function
Function created
Adding POST method to rest api
POST method added
Adding OPTIONS method to rest api
OPTIONS method addded
Deploying api
Api deployed
Creating bucket: my-cms-aws-cms
Bucket created
Populating bucket
Uploading: index.html
Complete
Uploading: robots.txt
Complete
Uploading: site.js
Complete
Uploading: Content/post_list.json
Complete
Uploading: Content/site_settings.json
Complete
Uploading: Content/Page/5.json
Complete
Uploading: Content/Page/8.json
Complete
Uploading: Content/Post/8.json
Complete
Uploading: CSS/admin.css
Complete
Uploading: CSS/bootstrap-theme.min.css
Complete
Uploading: CSS/getBlogs.css
Complete
Uploading: CSS/login.css
Complete
Uploading: CSS/main.css
Complete
Uploading: CSS/sb-admin-2.min.css
Complete
Uploading: HTML/blog-form.html
Complete
Uploading: HTML/cms_login_form.html
Complete
Uploading: HTML/dashboard-sample.html
Complete
Uploading: HTML/error.html
Complete
Uploading: HTML/index.html
Complete
Uploading: HTML/login.html
Complete
Uploading: HTML/navbar.html
Complete
Uploading: HTML/page-form.html
Complete
Uploading: HTML/pages.html
Complete
Uploading: HTML/posts.html
Complete
Uploading: HTML/role-form.html
Complete
Uploading: HTML/roles.html
Complete
Uploading: HTML/site-settings.html
Complete
Uploading: HTML/upload-image.html
Complete
Uploading: HTML/user-registration-form.html
Complete
Uploading: HTML/users.html
Complete
Uploading: HTML/visitor-navigation.html
Complete
Uploading: Images/login-background.jpeg
Complete
Uploading: JavaScript/api.js
Complete
Uploading: JavaScript/forms.js
Complete
Uploading: JavaScript/index.js
Complete
Uploading: JavaScript/login.js
Complete
Uploading: JavaScript/sb-admin-2.min.js
Complete
Uploading: JavaScript/spinner.min.js
Complete
Uploading: JavaScript/ui-tinymce-min.js
Complete
Uploading: Templates/404.html
Complete
Uploading: Templates/list.html
Complete
Uploading: Templates/page.html
Complete
Uploading: Templates/post.html
Complete
Bucket populated
Creating table: my-cms-aws-cms-Blog
Blog table created
Creating table: my-cms-aws-cms-Page
Page table created
Creating table: my-cms-aws-cms-Token
Token table created
Creating table: my-cms-aws-cms-Role
Role table created
Creating admin role db entry
Admin role db entry created
Creating table: my-cms-aws-cms-User
User table created
Creating admin db entry
Admin db entry created
Username: [email protected]
Password: password123
Login at: https://s3.amazonaws.com/my-cms-aws-cms/HTML/login.html
PS D:\code-repository\AWS-CMS-LAMBDA>

Enabling CORS Automation - API Gateway

There is currently an existing issue where we cannot automate the enabling of CORS on the Resource of the API Gateway.

It can be performed manually via AWS Console to test calling the API from a web form, however we require automation.

Lambda function permissions on API Gateway overwritten by API Gateway

There is currently an issue where the API Gateway overwrites the given permissions of a Lambda function at creation time.

This requires investigation, however in the mean time, there is a simply temporary patch to continue work:

  • Under API Gateway -> Integration Request, simply simulate the renaming of the function assigned to the API Gateway, however do not change the value, just save. You will be prompted to allow permissions on the function which can be accepted.

AWS Credentials / Profile

I'm setting up my first deployment and have historically used profiles for the multiple AWS account.

$ aws configurate aws-test1-account --profile aws-test1
Access Key: asdfasdf
Secret Key: secretasdfsecretasdf
Region: us-east-1
Format: None

This lets me jump between accounts. I do not set a [default] profile in my credentials file. The command for setting up the CMS initially does not seem to allow for the --profile option. I'm reading the code now to see if I can find a place to insert it.

This is the command that I expected to be able to add a --profile.

$ python setup.py test1-cms us-east-1

I'm looking in the cms_functions.py and the class AwsFunc: comment about awscli configuration which is what I've done above or an aws configuration file which read up on from:

http://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html

This points to a ENV Variable:

AWS_DEFAULT_PROFILE which might suit my purposes for a temporary change to the default profile.

Do you have any suggestions on a better solution?

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.