Configuring the AWS CLI
Written by
Updated at October 25, 2024
You can manage queues and messages in Message Queue using the AWS CLI
To configure the AWS CLI to work with Message Queue:
-
Install
the AWS CLI. -
Create a service account with the
editor
role. -
Create static access keys. Save the ID and secret key to a secure location. You will not be able to view the secret key parameters again after you close the window.
-
Set up the AWS CLI:
-
Launch the interactive profile setup:
aws configure
-
Specify the service account key ID you obtained earlier:
AWS Access Key ID [****************ver_]: <service_account_key_ID>
-
Specify the service account secret key you obtained earlier:
AWS Secret Access Key [****************w5lb]: <service_account_secret_key>
-
Specify the
ru-central1
default region name:Default region name [ru-central1]: ru-central1
-
Specify
json
as the default format for output data:Default output format [None]: json
-
To view the current profile settings, run this command:
aws configure list
Result:
Name Value Type Location ---- ----- ---- -------- profile <not set> None None access_key ****************aBc1 shared-credentials-file secret_key ****************DeF2 shared-credentials-file region ru-central1 config-file ~/.aws/config
-