AWS Connector — Prerequisites

Install the AWS CLI and create an IAM user with access keys before connector setup.

2 min read Updated SS

Follow the below steps before setting up the AWS Connector.

  1. Install AWS Command Line Interface (CLI), using the below link:

    Url

     https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
    
  2. Create an IAM user account in AWS.

  3. Create access and secret key under the user. One user can have multiple keys, using the below link:

    Url

    https://aws.amazon.com/premiumsupport/knowledge-center/create-
    access-key/
    
  4. AWS instance can be in any region. Select the region and create an AWS instance in the respective region, using the below link:

    Url

     https://docs.aws.amazon.com/efs/latest/ug/gs-step-one-create-ec2-
    resources.html
    
  5. In AWS, the namespace is a container that holds a list of metrics. You can add metrics in custom and AWS namespaces. A namespace is common for all regions and all instances under the region. Elastic Compute Cloud (EC2) is an AWS service. AWS plugin fetches the metrics under the namespaces.

    Install an agent on an EC2 instance to fetch the metrics. EC2 instances send data to the cloud watch service, using the below link to configure CWAgent on the EC2 instance:

    Url

    https://www.rapidspike.com/blog/how-to-send-log-files-to-aws-
    cloudwatch-ubuntu/
    

    Assign IAM role to EC2 instance with following permission policies:

    CloudWatchAgentServerPolicy

    CWAgent automatically creates the namespace and starts assigning values for the respective metrics.

  6. AWS log stream holds all the logs. Each application has one log stream, to configure log groups and log streams:

    Url

    https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-
    with-log-groups-and-streams.html
    

    The application writes the logs in a file. CWAgent picks up the logs from log files and pushes them to the log stream. AWS plugin reads the data from the log stream, which contains KPIs details.

    It would be best if you had a unique dimension to identify a unique metric value for a given instance. There can be multiple instances for a region. These instances can have the same metrics as CPU utilization.

  7. Create an account using Control Center for a particular client or organization.

    Create applications, services, hosts, component instances, and agents for that account using Control Center.

  8. To monitor custom metrics (if any) in addition to OOB metrics, create the metrics via the CC UI.