Code QuizAdvanced

Declaring Multiple Instances the Wrong Way

Spot the mistake when someone hand-copies resource blocks instead of declaring intent.

Codehcl
resource "aws_instance" "web" {
  ami           = "ami-0abcd1234"
  instance_type = "t3.micro"
}

resource "aws_instance" "web" {
  ami           = "ami-0abcd1234"
  instance_type = "t3.micro"
}

resource "aws_instance" "web" {
  ami           = "ami-0abcd1234"
  instance_type = "t3.micro"
}

The author wants 3 identical web servers. What is the bug in this configuration?