core: update test count vars to num
This commit is contained in:
parent
7edff454f2
commit
90893eb3f9
|
@ -3406,7 +3406,7 @@ func TestContext2Apply_multiVar(t *testing.T) {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
Variables: InputValues{
|
Variables: InputValues{
|
||||||
"count": &InputValue{
|
"num": &InputValue{
|
||||||
Value: cty.NumberIntVal(3),
|
Value: cty.NumberIntVal(3),
|
||||||
SourceType: ValueFromCaller,
|
SourceType: ValueFromCaller,
|
||||||
},
|
},
|
||||||
|
@ -3441,7 +3441,7 @@ func TestContext2Apply_multiVar(t *testing.T) {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
Variables: InputValues{
|
Variables: InputValues{
|
||||||
"count": &InputValue{
|
"num": &InputValue{
|
||||||
Value: cty.NumberIntVal(1),
|
Value: cty.NumberIntVal(1),
|
||||||
SourceType: ValueFromCaller,
|
SourceType: ValueFromCaller,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
variable "num" {}
|
variable "num" {}
|
||||||
|
|
||||||
resource "aws_instance" "bar" {
|
resource "aws_instance" "bar" {
|
||||||
foo = "bar${count.index}"
|
|
||||||
count = "${var.num}"
|
count = "${var.num}"
|
||||||
|
foo = "bar${count.index}"
|
||||||
}
|
}
|
||||||
|
|
||||||
output "output" {
|
output "output" {
|
||||||
|
|
Loading…
Reference in New Issue