diff --git a/CHANGELOG.md b/CHANGELOG.md index dab6ab5e..85c04f60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ # Release History +## 1.0.4 [2025-12-04] + +Fixed: Control stuck on Running state for resource type targets account on gov and china cloud. + ## 1.0.3 [2025-09-17] Fixed: Resolved an issue where controls encountering non-fatal errors were not retried and remained in the handling state indefinitely. diff --git a/index.js b/index.js index fdfbca78..1e11cffa 100644 --- a/index.js +++ b/index.js @@ -70,7 +70,7 @@ const setAWSEnvVars = ($) => { } } - const region = + let region = $.item?.turbot?.custom?.aws?.regionName ?? $.item?.turbot?.metadata?.aws?.regionName ?? $.item?.metadata?.aws?.regionName; diff --git a/package.json b/package.json index a0c711d7..631e6426 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@turbot/guardrails-lib-fn", "author": "Turbot HQ, Inc", - "version": "1.0.3", + "version": "1.0.4", "description": "Guardrails Lib Fn.", "license": "Apache-2.0", "repository": {