Deployments
Initial deployment
Code Genie apps include a simple command to enable one-command setup:
This command does the following:
- Installs NPM dependencies (
npm i
) - Creates a new entry in the AWS Credentials File
~/.aws/credentials
calledyour-app-name_dev
using credentials copied from thedefault
profile. - Bootstraps CDK in the AWS account (
cdk bootstrap
) - Deploys to AWS (
npm run deploy:dev
) - Copies CloudFormation/CDK outputs to local
.env
files for running the UI and API locally (npm run copy-outputs-to-dotenv:dev
) - Opens the live version of the web app in your browser.
Deploying updates
After the initial deployment, you can deploy changes to AWS with:
Deploying to staging and production
Similar commands exist for staging
and prod
:
CI/CD
See the CI/CD Pipeline page for more details.