From 1c46d2e6a6ac5ef2e9e728891fcb211092631537 Mon Sep 17 00:00:00 2001 From: Sean Liao Date: Thu, 18 Dec 2025 15:06:38 +0000 Subject: [PATCH] chore: treat security_token specially for empty / null --- internal/provider/stream_resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/stream_resource.go b/internal/provider/stream_resource.go index 3bc160a..a6b7fef 100644 --- a/internal/provider/stream_resource.go +++ b/internal/provider/stream_resource.go @@ -1221,7 +1221,7 @@ func updateDestinationAttributesFromAPI(destAttrs map[string]interface{}) (types switch val := v.(type) { case string: // Treat empty strings as null for optional fields that are not relevant for this destination type - if val == "" && (k == "access_key" || k == "secret_key" || k == "bucket" || k == "region" || k == "file_compression" || k == "sslmode") { + if val == "" && (k == "access_key" || k == "secret_key" || k == "bucket" || k == "region" || k == "file_compression" || k == "sslmode" || k == "security_token") { attrs[k] = types.StringNull() } else { attrs[k] = types.StringValue(val)