Skip to content

fivethreeo/razzle-turbo-aws-cdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

razzle-turbo-aws-cdk

Make sure docker is installed

sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
 curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
 sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/debian \
   $(lsb_release -cs) \
   stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

Make sure you have access to docker

sudo usermod -aG docker $USER 
newgrp docker

Set aws credentials and region

export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
export AWS_DEFAULT_REGION=eu-north-1

Install dependencies

yarn install

Build cdk stack

cd deploy
yarn cdk synth

Bootstrap cdk

yarn cdk bootstrap

Deploy stack

yarn cdk deploy

https://aws.amazon.com/blogs/infrastructure-and-automation/use-aws-cdk-to-initialize-amazon-rds-instances/

https://aws.amazon.com/premiumsupport/knowledge-center/api-gateway-cloudfront-distribution/

https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-api

https://aws.amazon.com/blogs/devops/building-apps-with-aws-cdk/

https://serverlessland.com/patterns/cloudfront-s3-lambda-cdk

https://docs.aws.amazon.com/cdk/api/v1/docs/aws-lambda-nodejs-readme.html

https://docs.aws.amazon.com/cdk/api/v1/docs/aws-cloudfront-readme.html#distribution-api

About

Razzle with turborepo, api and aws cdk deployment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published