Versions Compared

Key

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

...

  • Amazon Account

  • HiveMQ License (optional)

  • Install Amazon CLI

    • The AWS Command Line Interface is an open-source tool that enables you to interact with AWS services using commands in your command-line shell.
      To install the AWS CLI on macOS with Homebrew, open a terminal and enter the following. For other operating systems, see AWS CLI installation.

      Code Block
      brew install awscli
    • Verify AWS CLI Installation Open a new terminal or command prompt and run:

      • This should display the installed AWS CLI version.(For us , its aws-cli/2.15.17 Python/3.11.7 Darwin/23.3.0 source/arm64 prompt/off)

        Code Block
        aws --version
  • Configure AWS CLI: After installing the AWS CLI, do the following steps to configure it. (For more information, see Configure the AWS CLI in the AWS Command Line Interface User Guide.)

    • AWS IAM User: You can also create IAM user from AWS Management console. For this procedure, we are creating an IAM user using AWS CLI.
      You can skip the following steps if you already have a IAM user with the right access.

      • Create a New IAM User

        Run the following command to create a new IAM user:

        Code Block
        aws iam create-user --user-name hivemq-user
      • 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
      • 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

        Following is the output is displayed after the successful creation of the access key, Please copy AccessKeyId and SecretAccessKey values for the next steps.

        Code Block
        {
            "AccessKey": {
                "UserName": "test-user",
                "AccessKeyId": "AKIAZDMBWNVEP3Y5F2PH",
                "Status": "Active",
                "SecretAccessKey": "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",
                "CreateDate": "2024-02-01T11:10:59+00:00"
            }
        }
      • Run the following command:

        Code Block
        aws configure
      • 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.
        This command will prompt you to enter the following information:

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

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

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

        • 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
  • EKS CLI (eksctl)
    eksctl is a command line tool for working with EKS clusters that automates many individual tasks. To install the AWS CLI on macOS with Homebrew, open a terminal and enter the following. For other operating systems, see the installation in eksctl documentation.

    Code Block
    brew tap weaveworks/tap
    brew install weaveworks/tap/eksctl
  • IAM permissions – The IAM security principal that you're using must have permissions to work with Amazon EKS IAM roles, service linked roles, AWS CloudFormation, a VPC, and related resources. For more information, see Actions, resources, and condition keys for Amazon Elastic Container Service for Kubernetes and Using service-linked roles in the IAM User Guide.

  • Kubectl, Helm and MQTT CLI https://hivemq.atlassian.net/wiki/spaces/HMS/pages/2700902571

...