[Yandex Cloud documentation](../../index.md) > [Yandex Message Queue](../index.md) > [Step-by-step guides](index.md) > Configuring the AWS CLI

# Configuring the AWS CLI

You can manage queues and messages in Message Queue using the [AWS CLI](https://aws.amazon.com/cli/).

To configure the AWS CLI to work with Message Queue:

1. [Install](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) the AWS CLI.
1. [Create](../../iam/operations/sa/create.md) a service account with the `editor` role.
1. [Create](../../iam/operations/authentication/manage-access-keys.md#create-access-key) 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.
1. Configure the AWS CLI:

   1. Launch the interactive profile setup:
   
      ```bash
      aws configure
      ```
   
   1. Specify the service account key ID you obtained earlier:
   
      ```bash
      AWS Access Key ID [****************ver_]: <service_account_key_ID>
      ```
   
   1. Specify the service account secret key you obtained earlier:
   
      ```bash
      AWS Secret Access Key [****************w5lb]: <service_account_secret_key>
      ```
   
   1. Specify the `ru-central1` default region name:
   
      ```bash
      Default region name [ru-central1]: ru-central1
      ```
   
   1. Specify `json` as the default format for output data:
   
      ```bash
      Default output format [None]: json
      ```
   
   1. To view the current profile settings, run this command:
   
      ```bash
      aws configure list
      ```
   
      Result:
   
      ```text
            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
      ```