Update util.ts
This commit is contained in:
@@ -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"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user