An error occurred (MissingParameter) when calling the DescribeInstances operation: The request must contain the parameter AWSAccessKeyId.

0

I am trying to run a shell script to launch an ec2 instance, the properties for which are defined in the script. while running the script I get the below error. "An error occurred (MissingParameter) when calling the DescribeInstances operation: The request must contain the parameter AWSAccessKeyId."

Kiran
질문됨 10달 전716회 조회
1개 답변
1

Before executing AWS CLI commands, you need to configure your AWS credentials. This typically involves setting up an IAM user with the necessary permissions and then configuring your local environment with the IAM user's credentials.

to do this

if you have not any user create an IAM user (During the process of creating the user, you will be provided with an Access Key ID and Secret Access Key.) Open your terminal and run aws configure. You'll be prompted to enter your AWS Access Key ID and AWS Secret Access Key, which you obtained from the previous step. You'll also be asked to specify a default region name (for example, us-west-2) and a default output format (for example, json).

AWS Access Key ID [None]: YOUR_ACCESS_KEY
AWS Secret Access Key [None]: YOUR_SECRET_KEY
Default region name [None]: us-west-2
Default output format [None]: json
profile picture
전문가
답변함 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠