Prompt
I need infrastructure as code that supports AWS and Azure without separate tools
Latest observation
Nov 5, 2026
OpenAI APIWeb search: off
If you want one infrastructure-as-code tool that works across both AWS and Azure, the most practical options are:
Best fit: Terraform
- Single tool for both clouds
- Huge provider ecosystem
- Works well for:
- AWS
- Azure
- Kubernetes
- SaaS tools
- Good for reusable modules and multi-cloud setups
Why people choose it
- You write one declarative language
- Same workflow for both providers
- Strong community support
- Mature CI/CD integrations
Example
provider "aws" {
region = "us-east-1"
}
provider "azurerm" {
features {}
}
resource "aws_s3_bucket" "example" {
bucket = "my-example-bucket"
}
resource "azurerm_resource_group" "example" {
name = "example-rg"
location = "East US"
}
Other options
Pulumi
- Uses general-purpose languages like TypeScript, Python, Go, C#, Java
- Also supports AWS and Azure in the same tool
- Good if your team prefers programming over declarative config
- More flexible, but sometimes more complex than Terraform
Crossplane
- Kubernetes-native infrastructure management
- Good if you already run Kubernetes and want cloud resources managed from there
- Less common for general-purpose IaC than Terraform
Recommendation
If your goal is simply:
- one tool
- AWS + Azure support
- widely adopted
- easy hiring/support
then Terraform is usually the best choice.
If you want, I can also give you:
- a Terraform starter repo structure for AWS + Azure, or
- a comparison of Terraform vs Pulumi for your use case.