Update util.ts

This commit is contained in:
Daniel Hougaard
2024-09-23 19:27:22 +04:00
parent 33986fffab
commit 39d38a7382

View File

@@ -11,7 +11,7 @@ export const getAwsRegion = async () => {
try { try {
const timeout = 1000; const timeout = 1000;
const tokenRes = await axios.get(AWS_TOKEN_METADATA_URI, { const tokenRes = await axios.put(AWS_TOKEN_METADATA_URI, {
headers: { headers: {
"X-aws-ec2-metadata-token-ttl-seconds": "21600" "X-aws-ec2-metadata-token-ttl-seconds": "21600"
}, },