AWS-SDK configuration error In Angular application running on EC2 with instance profile role

0

We have an angular application running on an EC2 instance with an instance profile role attached.

  • Ideally configuring aws-sdk secret and access key is not required. Because of instance profile role.
  • But AWS-SDK configure is failing, and showing the error: "Missing credentials in the config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"
  • Note: We cannot use API Gateway in the project that is the reason we have aws-sdk installed in the angular app itself.
已提问 2 年前443 查看次数
1 回答
0

You still need to add an IAM role and add attach the required policies to enable your app communication with SDK.

profile picture
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则