-
-
Save wmelton/1be3ab49bb818daff32b563e2f035109 to your computer and use it in GitHub Desktop.
aws-bug-example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { S3Client } = require("@aws-sdk/client-s3-node/S3Client"); | |
const { | |
PutObjectCommand, | |
} = require("@aws-sdk/client-s3-node/commands/PutObjectCommand"); | |
const s3 = new S3Client({ | |
region: "us-east-1", | |
accessKeyId: process.env.aws_access_key_id, | |
secretAccessKey: process.env.aws_secret_access_key, | |
}); | |
/* | |
Outputs: | |
Error: Error response received from instance metadata service | |
at new ProviderError (/var/www/prod/app/node_modules/@aws-sdk/property-provider/build/ProviderError.js:17:28) | |
at ClientRequest.<anonymous> (/var/www/prod/app/node_modules/@aws-sdk/credential-provider-imds/build/remoteProvider/httpGet.js:18:24) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment