Course contentsShow
← Software Engineering
Lesson 1485 of 1,93343. Infrastructure as CodeFree lesson

Introduction to CloudFormation and ARM Templates

Overview of cloud-native provisioning tools: AWS CloudFormation and Azure Resource Manager templates.

Introduction to CloudFormation and ARM Templates

You'll learn how AWS CloudFormation and Azure Resource Manager (ARM) templates enable cloud-native infrastructure provisioning through vendor-specific declarative frameworks.

Cloud-Native Provisioning Tools

While Terraform offers multi-cloud infrastructure provisioning, major cloud providers offer their own native tools: AWS CloudFormation and Azure Resource Manager (ARM) templates. These are declarative frameworks built specifically for their respective platforms, offering deep integration with every service their cloud provides.

AWS CloudFormation

CloudFormation uses JSON or YAML templates to define AWS infrastructure as code. You describe resources (EC2 instances, S3 buckets, IAM roles) in a single template file, and CloudFormation handles the entire provisioning lifecycle—creating, updating, and deleting resources in the correct order, respecting dependencies automatically.

Think of CloudFormation as AWS's native language for infrastructure. Because it's built by AWS, it often supports new AWS features immediately upon release, sometimes before third-party tools catch up.

Azure Resource Manager Templates

ARM templates serve the same purpose for Microsoft Azure. Written in JSON, they declaratively define Azure resources (virtual machines, storage accounts, networking components) and their relationships. ARM is the underlying engine that manages all Azure resources—every action in the Azure portal ultimately translates to ARM API calls.

Why Use Cloud-Native Tools?

These tools excel in single-cloud environments where deep integration matters. They understand cloud-specific concepts intimately, handle dependency resolution natively, and require no external state management (the cloud provider tracks state). However, they lock you into their ecosystem—CloudFormation templates won't work on Azure, and vice versa.

The trade-off is familiar: vendor lock-in versus native integration depth. For organizations committed to a single cloud, these tools offer the tightest integration possible.

Key Takeaway: CloudFormation and ARM templates are cloud-provider-native IaC tools that offer deep integration and automatic state management at the cost of vendor lock-in.