Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edumats/cdk-as-framework
A template for building web application from a AWS CDK that acts as a web framework. Authentication, database, compute, API, CDN, storage are all serverless AWS services.
https://github.com/edumats/cdk-as-framework
Last synced: 5 days ago
JSON representation
A template for building web application from a AWS CDK that acts as a web framework. Authentication, database, compute, API, CDN, storage are all serverless AWS services.
- Host: GitHub
- URL: https://github.com/edumats/cdk-as-framework
- Owner: edumats
- Created: 2022-12-14T12:51:22.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-04T00:23:31.000Z (almost 2 years ago)
- Last Synced: 2024-11-10T03:30:10.015Z (2 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
REST API backed by Amazon DynamoDB
==================================This template provides a REST API that's backed by an Amazon DynamoDB table.
This application is deployed using the AWS CDK.For more information, see the `Deploying with the AWS CDK
`__ tutorial.Quickstart
----------First, you'll need to install the AWS CDK if you haven't already.
The CDK requires Node.js and npm to run.
See the `Getting started with the AWS CDK
`__ for
more details.::
$ npm install -g aws-cdk
Next you'll need to install the requirements for the project.
::
$ pip install -r requirements.txt
There's also separate requirements files in the ``infrastructure``
and ``runtime`` directories if you'd prefer to have separate virtual
environments for your CDK and Chalice app.To deploy the application, ``cd`` to the ``infrastructure`` directory.
If this is you're first time using the CDK you'll need to bootstrap
your environment.::
$ cdk bootstrap
Then you can deploy your application using the CDK.
::
$ cdk deploy
Project layout
--------------This project template combines a CDK application and a Chalice application.
These correspond to the ``infrastructure`` and ``runtime`` directory
respectively. To run any CDK CLI commands, ensure you're in the
``infrastructure`` directory, and to run any Chalice CLI commands ensure
you're in the ``runtime`` directory.