This project shows the entire lifecycle of a static project.
npm run build
npm run start
Then you can visit http://localhost:3000 to see the page.
- Copy the example secrets file:
cp infra/cf/infra-params-secrets-example.json infra/cf/infra-params-secrets.json
. - Edit the file
infra/cf/infra-params-secrets.json
and put in your secrets where needed.
STACK_NAME=project-static
aws cloudformation deploy --template-file infra/cf/infra.yml --stack-name $STACK_NAME --parameter-overrides file://./infra/cf/infra-params-secrets.json --capabilities CAPABILITY_NAMED_IAM