File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ resource "aws_instance" "master" {
161
161
# We're going to launch into the same subnet as our ELB. In a production
162
162
# environment it's more common to have a separate private subnet for
163
163
# backend instances.
164
- subnet_id = " ${ aws_subnet . public . * . id [ count . index ] } "
164
+ subnet_id = " ${ element ( aws_subnet. public . * . id , count. index ) } "
165
165
166
166
# We run a remote provisioner on the instance after creating it.
167
167
# In this case, we just install nginx and start it. By default,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ resource "aws_instance" "agent" {
42
42
# We're going to launch into the same subnet as our ELB. In a production
43
43
# environment it's more common to have a separate private subnet for
44
44
# backend instances.
45
- subnet_id = " ${ aws_subnet . private . * . id [ count . index ] } "
45
+ subnet_id = " ${ element ( aws_subnet. private . * . id , count. index ) } "
46
46
47
47
# OS init script
48
48
provisioner "file" {
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ resource "aws_instance" "public-agent" {
84
84
# We're going to launch into the same subnet as our ELB. In a production
85
85
# environment it's more common to have a separate private subnet for
86
86
# backend instances.
87
- subnet_id = " ${ aws_subnet . public . * . id [ count . index ] } "
87
+ subnet_id = " ${ element ( aws_subnet. public . * . id , count. index ) } "
88
88
89
89
# OS init script
90
90
provisioner "file" {
You can’t perform that action at this time.
0 commit comments