Prompt
What should I use for infrastructure code if my team wants Python or TypeScript?
Latest observation
Oct 1, 2026
OpenAI APIWeb search: off
If your team wants to write infrastructure code in Python or TypeScript, the main choice is usually Pulumi.
Why Pulumi
- Uses general-purpose languages like Python, TypeScript, Java, Go, C#
- Lets you reuse normal language features:
- functions
- classes
- loops
- packages
- tests
- Good if your team already knows Python/TypeScript and wants infrastructure code to feel like application code
If you want something else
- AWS CDK is a strong option if you’re primarily on AWS and want TypeScript/Python specifically.
- It’s great, but it’s AWS-focused rather than cloud-agnostic.
Quick rule of thumb
- Multi-cloud or cloud-agnostic: Pulumi
- AWS-only: AWS CDK
- Prefer declarative config over code: Terraform or CloudFormation
If you want, I can also compare Pulumi vs AWS CDK vs Terraform in a small table.