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.
asked 2 years ago439 views
1 Answer
0

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

profile picture
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions