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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ