Create multiple similar resources with count.
Section: Meta-arguments
Use count
hcl
hcl
resource "aws_instance" "web" {
count = 2
ami = var.ami_id
instance_type = "t3.micro"
}Explanation
Create multiple similar resources with count.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Meta-arguments