Skip to content
Publish your construct

Publish your construct

Page 44 of 50Verified:0Not verified:0Done:0
  1. 1. TerraConstructs - AWS Intro Workshop: not reached
  2. 2. Prerequisites: not reached
  3. 3. AWS CLI: not reached
  4. 4. AWS Account and User: not reached
  5. 5. Node.js: not reached
  6. 6. IDE for your programming language: not reached
  7. 7. CDKTN CLI Toolkit: not reached
  8. 8. Terraform CLI: not reached
  9. 9. TypeScript Workshop: not reached
  10. 10. New Project: not reached
  11. 11. CDKTN init: not reached
  12. 12. Project structure: not reached
  13. 13. TerraConstructs: not reached
  14. 14. CDKTN synth: not reached
  15. 15. CDKTN deploy: not reached
  16. 16. Hello, CDKTN!: not reached
  17. 17. Cleanup sample: not reached
  18. 18. Hello Lambda: not reached
  19. 19. Optional - Watch: not reached
  20. 20. API Gateway: not reached
  21. 21. Writing constructs: not reached
  22. 22. Define the HitCounter API: not reached
  23. 23. Hit counter handler: not reached
  24. 24. Define resources: not reached
  25. 25. Use the hit counter: not reached
  26. 26. CloudWatch Logs: not reached
  27. 27. Granting permissions: not reached
  28. 28. Test the hit counter: not reached
  29. 29. Using construct libraries: not reached
  30. 30. Learning about the Table Viewer construct: not reached
  31. 31. Installing the library: not reached
  32. 32. Add the table viewer to your app: not reached
  33. 33. Exposing our hit counter table: not reached
  34. 34. Deploying our app: not reached
  35. 35. Extra credit: not reached
  36. 36. Clean up: not reached
  37. 37. Advanced Topics: not reached
  38. 38. Testing Constructs: not reached
  39. 39. Assertion Tests: not reached
  40. 40. Validation Tests: not reached
  41. 41. Snapshot Tests: not reached
  42. 42. Terraform Matchers: not reached
  43. 43. Integration Tests: not reached
  44. 44. Publish your construct: not reached (this page)
  45. 45. Create the package: not reached
  46. 46. Build and pack: not reached
  47. 47. Use the package: not reached
  48. 48. Release a new version: not reached
  49. 49. Debugging constructs: not reached
  50. 50. Congrats!: not reached

Publish your construct (Extra credit)

In Using construct libraries you installed somebody else's construct, @tcons/cdk-dynamo-table-viewer, with pnpm add. In this chapter you do the same for your own HitCounter: move it out of the app into a package of its own, @workshop/hitcounter, build it, and install it back into the app like any other dependency.

We will not use a registry. pnpm pack produces the same .tgz file that pnpm publish would upload, and pnpm can install that file directly. Everything works offline, on the workshop box or on your own machine.

Edit this page