Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadzaikk authored Jun 15, 2021
1 parent 54c9d83 commit 040b75a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ resource "aws_instance" "this" {

resource "aws_ebs_volume" "this" {
size = 2
availability_zone = aws_instance.this.availability_zone[count.index]
availability_zone = aws_instance.this[count.index].availability_zone

}

Expand All @@ -34,4 +34,4 @@ resource "aws_volume_attachment" "this" {
instance_id = aws_instance.this.id[count.index]


}
}

0 comments on commit 040b75a

Please sign in to comment.