Open topic with navigation

# Configuring AWS CLI

Follow these steps to configure AWS CLI.

First, create and retrieve the AWS access keys.

1. Log in to the AWS Management Console using your IAM account.

1. Using the Find Services search box, browse to and open the IAM dashboard.
2. In the left navigation panel, choose Users.
3. Locate and open the user with which you are performing the installation.

1. Select the user in IAM and display the user summary.
2. On the Security Credentials tab, click Create Access Key.
3. Record both the Access key ID and secret access key, and download the `.csv` file for later use.

To configure the AWS CLI:

1. Launch the AWS CLI tool.
2. Run the following command:

       # aws configure

3. Enter the following information:
   - AWS Access Key ID: Enter the access key ID that you previously recorded.
   - AWS Secret Access Key: Enter the secret access key that you previously recorded, or copy and paste the contents from the CSV file that you downloaded earlier.
   - Default region name: Enter the region in which you are installing the ArcSight Suite. If you are unsure, verify your current region from the information in the top right corner of AWS console. Click on the city name and find the region name in the list. For example, eu-central-1.]
   Not all AWS regions support all required services. Your selected region must support the Elastic Container Service (ECS) and Elastic Kubernetes Service (EKS).
   - Default output format: Enter json.

Example input:

    # aws configure

    AWS Access Key ID [****************VPMC]: AKIA*************VPMC↲

    AWS Secret Access Key [****************wFap]: eZO***********************wFap↲

    Default region name [eu-central-1]: eu-central-1↲

    Default output format [json]: json↲

1. To verify configuration, in the AWS Cloud API, enter the command to view the default VPC description:

       # aws ec2 describe-vpcs

Example output:

    {
        "Vpcs": [
            {
                "CidrBlock": "172.31.0.0/16",
                "DhcpOptionsId": "dopt-3a1efe53",
                "State": "available",
                "VpcId": "vpc-a71cfcce",
                "OwnerId": "115370848038",
                "InstanceTenancy": "default",
                "CidrBlockAssociationSet": [
                    {
                        "AssociationId": "vpc-cidr-assoc-13d7337a",
                        "CidrBlock": "172.31.0.0/16",
                        "CidrBlockState": {
                            "State": "associated"
                        }
                    }
                ],
                "IsDefault": true
            }
        ]
    }