---
title: "Discussion on \"Provisioning Multiple AWS EC2 Instances Using Terraform: for_each vs count\" | Hashnode"
description: "Discussion on \"Provisioning Multiple AWS EC2 Instances Using Terraform: for_each vs count\". Infrastructure as Code (IaC) is a core skill for any DevOps engineer, and Terraform is one of the most widely used tools for this purpose.In this article, I’ll walk through two practical ways to create multiple EC2 instances in AWS using Terraform:\n\n..."
url: "https://hashnode.com/posts/provisioning-multiple-aws-ec2-instances-using-terraform-foreach-vs-count/6962fb5f4cc28315a3b3d395"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Provisioning Multiple AWS EC2 Instances Using Terraform: for\_each vs count](https://kmchandrashekhar.hashnode.dev/provisioning-multiple-aws-ec2-instances-using-terraform-foreach-vs-count?utm_source=hashnode&utm_medium=feed)

Infrastructure as Code (IaC) is a core skill for any DevOps engineer, and Terraform is one of the most widely used tools for this purpose.In this article, I’ll walk through two practical ways to create multiple EC2 instances in AWS using Terraform: ...

Jan 11 · 4 min read · kmchandrashekhar.hashnode.dev  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#ec2](https://hashnode.com/tag/ec2)
-   [#terraform](https://hashnode.com/tag/terraform)
-   [#foreach](https://hashnode.com/tag/foreach)
-   [#count](https://hashnode.com/tag/count)
-   [#dev](https://hashnode.com/tag/dev)

## Written by

[Chandrashekhar K M](https://hashnode.com/@chandus16)

@chandus16 · Bengaluru, India

  
[View profile](https://hashnode.com/@chandus16)

DevOps, RHEL, Centos, Ubuntu, Shell-Script, Ansible , Docker, Kubernetes, Terraform, AWS, Jenkins, Git, GitHub, Maven, SonarQube, Jfrog

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
