HomeContact

How to set credentials (authentication) when using the AWS CLI

Published in Server
January 27, 2023
1 min read

In order to use the AWS API, you must first credentials. Get the aws_access_key and aws_secret_access_key issued in the AWS console.

create the file as follows

  1. File name “credentials”

  2. File content

[default]
aws_access_key_id=AKIAIOSFODNN7EXAMPLE(Issued aws_access_key)
aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY(Issued aws_secret_access_key)


Save location:

-linux:/root/.aws/credentials (I run cli-related applications with the root account) -Windows:(login account folder)/.aws/credentials

For more information, please refer to the AWS official website below.


Tags

#Server#aws

Share


Previous Article
How to upload files from S3 using AWS CLI

Topics

Java
Other
Server

Related Posts

Calculating Date, Time in SQL-mysql
May 16, 2023
1 min