aws-config

CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1

。_饼干妹妹 提交于 2021-01-29 05:52:36
问题 I posted a question yesterday and today I have got a problem with the same project different error: my credentials and config files look like this: [ask-cli-Falkowsky] aws_access_key_id =XXXXXXXXXXXX aws_secret_access_key =XXXXXXXXXXXX [default] aws_access_key_id = XXXXXXXXXXXXX aws_secret_access_key = XXXXXXXXXXXXX [default] output = json region = eu-central-1 [profile ask-cli-Falkowsky] output = json region = eu-central-1 The Error I receive is also the Headline: CredentialsError: Missing

Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1

ぃ、小莉子 提交于 2020-06-27 08:06:12
问题 when I am trying to use Aws credentials in my project it gives an error i am facing hard to find the solution and when i am using credentials in the same file it worked but when i am trying to use.here is my tried code const AWS = require('aws-sdk'); const SESConfig = { apiVersion: "2010-12-01", accessKeyId: process.env.AWS_SECRET_KEY, accessSecretKey: process.env.AWS_SECRET_KEY, region: "us-east-1" } AWS.config.update(SESConfig); var sns = new AWS.SNS() var sns = new AWS.SNS(); function