This project leverages Pulumi to manage infrastructure as code (IaC) using TypeScript. Pulumi allows you to define, deploy, and manage cloud infrastructure using familiar programming languages and tools.
Navigate to infra/
cd infra/Deploy your stack in a single touch
pulumi upDelete your stack easier then ever
pulumi destroyDevelopment
dev: Starts the development server with hot-reloading.
npm run devBuild
build: Compiles the TypeScript code to JavaScript.
npm run buildStart
start: Runs the compiled JavaScript code.
npm startThe Dockerfile is structured to create a multi-stage build for efficient image creation:
- Base Stage: Uses Node.js 22 Alpine as the base image.
- Deps Stage: Installs dependencies using pnpm.
- Prod-Deps Stage: Installs production dependencies.
- Builder Stage: Compiles the TypeScript code.
- Runner Stage: Sets up the production environment and runs the application.
Build the Docker Image
docker build -t iac-pulumi .Run the Docker Image
docker run -p 3333:3333 iac-pulumiStop the Docker Container
docker stop <container_id>Remove the Docker Container
docker rm <container_id>- Code Reusability: Use familiar programming languages to define infrastructure.
- State Management: Pulumi manages the state of your infrastructure, ensuring consistency.
- Multi-Cloud Support: Deploy to AWS, Azure, GCP, and more with a single tool.
- Rich Ecosystem: Leverage a wide range of libraries and integrations.
🚀 Get started with Pulumi and streamline your infrastructure management!
