From 39d38a7382a604626705d1fb15aed7ecf9ea7220 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Mon, 23 Sep 2024 19:27:22 +0400 Subject: [PATCH] Update util.ts --- src/custom/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/custom/util.ts b/src/custom/util.ts index 5849a40..c7be35b 100644 --- a/src/custom/util.ts +++ b/src/custom/util.ts @@ -11,7 +11,7 @@ export const getAwsRegion = async () => { try { const timeout = 1000; - const tokenRes = await axios.get(AWS_TOKEN_METADATA_URI, { + const tokenRes = await axios.put(AWS_TOKEN_METADATA_URI, { headers: { "X-aws-ec2-metadata-token-ttl-seconds": "21600" },