diff --git a/mmv1/templates/terraform/extra_schema_entry/redis_instance.erb b/mmv1/templates/terraform/extra_schema_entry/redis_instance.erb index 054515f280e5..fea34e1686d2 100644 --- a/mmv1/templates/terraform/extra_schema_entry/redis_instance.erb +++ b/mmv1/templates/terraform/extra_schema_entry/redis_instance.erb @@ -2,4 +2,5 @@ Type: schema.TypeString, Description: "AUTH String set on the instance. This field will only be populated if auth_enabled is true.", Computed: true, + Sensitive: true, }, \ No newline at end of file diff --git a/mmv1/third_party/terraform/tests/resource_redis_instance_test.go b/mmv1/third_party/terraform/tests/resource_redis_instance_test.go.erb similarity index 98% rename from mmv1/third_party/terraform/tests/resource_redis_instance_test.go rename to mmv1/third_party/terraform/tests/resource_redis_instance_test.go.erb index 9c4c79c5b60a..c818df900e37 100644 --- a/mmv1/third_party/terraform/tests/resource_redis_instance_test.go +++ b/mmv1/third_party/terraform/tests/resource_redis_instance_test.go.erb @@ -1,3 +1,5 @@ +<% autogen_exception -%> + package google import ( @@ -143,7 +145,9 @@ resource "google_redis_instance" "test" { maxmemory-policy = "noeviction" notify-keyspace-events = "" } + <% unless version == 'ga' -%> transit_encryption_mode = "SERVER_AUTHENTICATION" + <% end -%> } `, name) }