Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a New IAM User

    1. Run the following command to create a new IAM user:

      Code Block
      aws iam create-user --user-name hivemq-user
    2. Attach AdministratorAccess Policy

      Run the following command to attach the AdministratorAccess policy to the newly created user:

      Code Block
      aws iam attach-user-policy --user-name hivemq-user --policy-arn arn:aws:iam::aws:policy/AdministratorAccess
    3. Create Access Key

      Run the following command to create an access key for the user:

      Code Block
      aws iam create-access-key --user-name hivemq-user
    4. Following is the output is displayed after the successful creation of the access key, Please copy and save AccessKeyId and SecretAccessKey values for the next steps.

      Code Block
      {
          "AccessKey": {
              "UserName": "test-user",
              "AccessKeyId": "AKIAZDMBWNVEP3Y5F2PHAKIXXXXXXF2PH",
              "Status": "Active",
              "SecretAccessKey": "cRIs2av5jBzrE3oZX8PGWJ/R1FfsXcH3RBF3lAEicRIs2aXXXXXXAEi",
              "CreateDate": "2024-02-01T11:10:59+00:00"
          }
      }
    5. Run the following command:

      Code Block
      aws configure
      1. Optionally, you can configure a named profile, such as --profile cluster-admin. If you configure a named profile in the AWS CLI, you must always pass this flag in subsequent commands.

    6. This command will prompt you to enter the following information:

      1. AWS Access Key ID: Enter your AWS access key.

      2. AWS Secret Access Key: Enter your AWS secret key.

      3. Default region name: Enter the AWS region you want to use (e.g., us-east-1).

      4. Default output format: You can leave this as json.
        For example:

        Code Block
        AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
        AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
        Default region name [None]: us-east-1
        Default output format [None]: json
  2. Create EKS Cluster

    1. To create an EKS cluster with all the necessary resources for your cluster, enter the following command with the desired location (in this procedure, we use eu-east-1) and instance type c5.2xlarge (8 CPUs, 16 GiB RAM), enter the following command and wait until the process completes. Processing time can vary:

...