Skip to content

TS-REACT0806/template-sst-ts

 
 

Repository files navigation

Template SST TypeScript

Prerequisites

  • Download extension ESLint and Prettier - Code formatter in your VSCode.
  • Install node 16.13.2.
  • Install pnpm ^7.x.x.

  • (Required for MacOSX): Execute this command to grant Husky the necessary permissions to run the pre-commit hook.
chmod ug+x .husky/*
chmod ug+x .git/hooks/*
  • (Optional): Do this if you are using nvm.
nvm use # For MacOSX and Linux
nvm use $(cat .nvmrc) # For Windows (Git Bash)

Install Dependencies:

pnpm i

Build:

pnpm build --stage=<stage>

Development:

pnpm dev --stage=<stage>

Secrets:

Note: Secrets are stored in AWS Secrets Manager (Parameter Store).

If you want to add secrets, you need to follow these steps:

  1. Go to stacks/secrets.ts and add your secret key to secrets object.
  2. Either run pnpm secrets set <key> <value> --stage <stage> or pnpm secrets load <path_to_env> --stage <stage> to add secrets to AWS Secrets Manager.
  3. Run pnpm build --stage <stage> to build the project.

Add secret

pnpm secrets set <secret_key> <secret_value> --stage=<stage>

List of secrets

pnpm secrets list --stage=<stage>

Delete secret

pnpm secrets remove <secret_key> --stage=<stage>

Load secrets from .env file

pnpm secrets load <path_to_env> --stage=<stage>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 94.2%
  • JavaScript 5.3%
  • Shell 0.5%