Configure the platform

This topic describes setting up the authentication of the agent with the Amplify Platform.

Create SSH public-private key pair

To authorize a service account with Amplify platform, you need a Secure Shell (SSH) public and private key pair in RSA format. The Platform can generate the keypair for you. Or, you can use openssl in the command-line interface (CLI) on the agent host computer to create they keypair. Run each command from the agent install directory.

To generate the private key:

openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048

To generate the public key:

openssl rsa -pubout -in private_key.pem -out public_key.pem

The key files are generated in the current directory.

Create a service account in the Platform

Refer to the Platform Management guide to add a service account in the Platform. You refer to this file when you configure automated usage reporting.

Register your environments

Before you upload usage reports automatically, there must be an environment for your organization on the platform. The environment ID is declared in the usage report the agent generates. When the report is uploaded, the platform verifies whether the environment is registered to your organization. Without a valid environment, the upload fails.

  1. Log on to the Amplify platform.
  2. Select  <User Name> | Organization  at the top right. The Organization page is displayed.
  3. Click the Environments tab.
  4. If your organization has no environments, click + Environment at the top right to add an environment.

If are using Amplify Edge Agent, copy the environment ID to the report configuration file for your on-premises product. The agent uses the file to aggregate the data to upload to the platform. Edit the envId value in the report configuration file.

Related Links