Skip to content

Commit bbf8042

Browse files
committed
log when using fips endpoints
1 parent ca7e5c5 commit bbf8042

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

datadog_lambda/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def get_api_key() -> str:
6666

6767
REGION = os.environ.get("AWS_REGION", "")
6868
is_gov_region = REGION.startswith("us-gov-")
69+
if is_gov_region:
70+
logger.info("Govcloud region detected. Using FIPs endpoints for secrets management.")
6971

7072
if DD_API_KEY_SECRET_ARN:
7173
# Secrets manager endpoints: https://docs.aws.amazon.com/general/latest/gr/asm.html

0 commit comments

Comments
 (0)