Skip to content

Latest commit

 

History

History
61 lines (36 loc) · 1.59 KB

script.md

File metadata and controls

61 lines (36 loc) · 1.59 KB

Intro

Build placeholders for deployment

  • Show code for api-placeholder and run it directly on host

  • Show code for worker-placeholder and run it directly on host

  • Show Dockerfile for api-placeholder, build container, and run locally: docker build . docker run -d -p 3000 -e PORT=3000 docker ps curl localhost: docker logs

  • Show Dockerfile for worker-placeholder, build container, and run locally: docker build . docker run -d docker ps docker logs

Create basic CDK structure: (app.1.js)

  • Three stacks: one for base resources, one for API, one for worker

  • Show output of npm synth in synth folder

  • Show output of npm diff

  • Run npm deploy

  • Show deployed resources in console

Add placeholder apps into the CDK structure (app.2.js)

  • Add placeholder apps into the API stack and worker stack

  • Show output of npm diff again

  • Run npm deploy

  • Show all the deployed resources, verify that API responds, show logs in ECS console

Deploying the actual app (app.3.js)

  • Show code for the real API

  • Show code for the real worker

  • Add resources to the base template

  • Add permissions to the API and worker, switch code over