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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南