We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b484ec1 commit 2e63a69Copy full SHA for 2e63a69
2 files changed
config/config_test.go
@@ -95,6 +95,13 @@ func TestConfigValidate_countUserVar(t *testing.T) {
95
}
96
97
98
+func TestConfigValidate_countVar(t *testing.T) {
99
+ c := testConfig(t, "validate-count-var")
100
+ if err := c.Validate(); err != nil {
101
+ t.Fatal("err: %s", err)
102
+ }
103
+}
104
+
105
func TestConfigValidate_countVarInvalid(t *testing.T) {
106
c := testConfig(t, "validate-count-var-invalid")
107
if err := c.Validate(); err == nil {
config/test-fixtures/validate-count-var/main.tf
@@ -0,0 +1,3 @@
1
+resource "aws_instance" "foo" {
2
+ foo = "${count.index}"
3
0 commit comments