@gamestonk/serverless-fatfree
v0.1.2
Published
You should explore the contents of this project. It demonstrates a CDK Construct Library that includes a construct (`ServerlessFatfree`) which contains an Amazon SQS queue that is subscribed to an Amazon SNS topic.
Downloads
1
Readme
Serverless Lamp Stack
Create a directory for your project
$ mkdir serverless && cd serverless
create cdk and codebase directories for AWS CDK and Laravel project
$ mkdir cdk codebase
Creating a new composer project with a private repo or packagist host
$ eval $(ssh-agent); \
docker run --rm -ti \
--volume $PWD:/app \
--volume $SSH_AUTH_SOCK:/ssh-auth.sock \
--env SSH_AUTH_SOCK=/ssh-auth.sock \
composer create-project org/repo:dev-branch \
--repository="{\"url\": \"<escaped repo url>\", \"type\": \"vcs\"}" ./codebase \ --ignore-platform-reqs --keep-vcs
Creating a new composer project with a public repo or packagist host
docker run --rm -ti \
--volume $PWD:/app \
composer create-project --prefer-dist packagist/name ./codebase
Add bref
$ docker run --rm -ti \
--volume $PWD:/app \
composer require bref/bref
Go Into CDK Directory
$ cd ../cdk
$ cdk init -l typescript
install the cdk-severless-lamp npm module
$ yarn add cdk-serverless-lamp