diff --git a/.gitignore b/.gitignore index dfee340..1ba5480 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ .idea *.iml *.terraform.lock.hcl +/_test/go.mod +/_test/go.sum diff --git a/_example/example.tf b/_example/example.tf index 7a62ce6..0f5cb3c 100644 --- a/_example/example.tf +++ b/_example/example.tf @@ -8,7 +8,7 @@ module "s3_bucket" { name = "clouddrove-sftp-bucket" environment = "test" - label_order = ["name", "environment"] + label_order = ["environment", "name"] versioning = true acl = "private" @@ -19,7 +19,7 @@ module "sftp" { source = "../" name = "sftp" environment = "test" - label_order = ["name", "environment"] + label_order = ["environment", "name"] enable_sftp = true public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDfjNc4A+atuEBaElnpQqFkBFgGc+kCslpXh/aKETl1Wh95tOy9IWHomegVxKB44OvB5s6I6HFwRa8MCpcAUnW3vD7hBwOv+PgJ0ZFUGYrl71doDHsWtfgoRhrKlhk2jjS7gOZrrYK2vg0859knhrmRQEm6snqFdZ6bLc6R/r0htgtgUx9mESZHfupL/lylOjBiEboQxpo1lp2MKEmksv5q+8A60ZN+mTEj6M4Zmbiw7ypGjcK8utgOyoJ58uWIMt76VW46M6FIGVymwnqBm5PUgThzTPhwVpIc4kTw2Ko1CF4l8fhHNHr698NNTkpol5QvFiBZIgbTGF9RBJyYpGN1XupY4UCrwLBFb5Sigu42lCfb2/wpuAPk5LpoUhdvrDYyzxMdFy0AhIs+3my9D5jNs2rHywoYzcGfrEwi8tLHRqaV+nOI4URk7GenzAQWbUeKwosgSyVv4XnAFrtHMx2oUN5iqAMwFeZH67gw9BkATiF0ZhExCHGILcLZTNJP2N0= anmol@clouddrove-Lenov" diff --git a/_test/sftp_test.go b/_test/sftp_test.go index 5f221df..52e812a 100644 --- a/_test/sftp_test.go +++ b/_test/sftp_test.go @@ -30,5 +30,5 @@ func Test(t *testing.T) { // Verify we're getting back the outputs we expect assert.Contains(t, Id, "s-") - assert.Equal(t, "sftp-test", Tags["Name"]) + assert.Equal(t, "test-sftp", Tags["Name"]) }