From 3d908f56aa6588b9a2db7cdf6b36bdf7b45d781f Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Wed, 13 Feb 2019 22:12:10 -0500 Subject: [PATCH] helper/schema: Add deprecation to ResourceData.UnsafeSetFieldRaw This functionality is no longer supported in Terraform 0.12 and above. --- helper/schema/resource_data.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helper/schema/resource_data.go b/helper/schema/resource_data.go index b6969f520..1c390709e 100644 --- a/helper/schema/resource_data.go +++ b/helper/schema/resource_data.go @@ -52,6 +52,8 @@ type getResult struct { // UnsafeSetFieldRaw allows setting arbitrary values in state to arbitrary // values, bypassing schema. This MUST NOT be used in normal circumstances - // it exists only to support the remote_state data source. +// +// Deprecated: Fully define schema attributes and use Set() instead. func (d *ResourceData) UnsafeSetFieldRaw(key string, value string) { d.once.Do(d.init)