Skip to main content

Upgrading via SAR

Upgrading the RainMaker Backend via SAR

There will be newer versions of RainMaker backend and frontend, which will be made available, periodically.

The backend and the frontend services need to be upgraded separately.

Upgrading the RainMaker Backend

You can check if the newer version of the RainMaker backend service is available, from the Serverless Application Repository (SAR).

You can only upgrade below repositories:

  • serverlessrepo-ESP-RainMaker-Base
  • serverlessrepo-ESP-RainMaker-Core

Note: You should never upgrade the below repository:
ESP-RainMaker-Base-API

The process of upgrading will be similar to deploying the RainMaker backend for the first time, except you will need to choose the latest version of the SAR repository.

Log in to AWS Console, and search for the SAR Service.

upgrade1

  • Click Available applications and select Private applications. Click the checkbox Show apps that create custom IAM roles or resource policies.

  • From the SAR repository menu, search for the "ESP-Rainmaker-" repository.

  • Click ESP-RainMaker-Base, the latest version of the repository will be displayed.

    upgrade2

  • If your existing version for ESP-RainMaker-Base is older than the latest version, you should upgrade this repository to the latest version.

  • The process of upgrading will be similar to deploying the ESP-RainMaker-Base repository.

  • Scroll down and click the checkbox I acknowledge that this app deploys nested applications.

  • Click the Deploy button.

    upgrade3

  • The deployment will start. This SAR repository will be deployed in around 10–15 minutes.

  • You can check the status of the deployment of this SAR repository, from CloudFormation.

  • Go to AWS Console > Services > CloudFormation. The list of stacks deployed will be shown.

  • You will see an entry for the serverlessrepo-ESP-RainMaker-Base stack. CREATE_COMPLETE status indicates that, this repository is successfully deployed, as shown below:

    upgrade4

After the ESP-RainMaker-Base repository is upgraded, you will need to upgrade the ESP-RainMaker-Core repository.

  • From the SAR repository menu, search for the "ESP-Rainmaker-" repository.

  • Click ESP-RainMaker-Core, the latest version of the repository will be displayed.

    upgrade5

  • If your existing version for ESP-RainMaker-Core is older than the latest version, you should upgrade this repository to the latest version.

  • The process of upgrading will be similar to deploying the ESP-RainMaker-Core repository.

  • Scroll down and enter the values for the parameters.

    upgrade6

  • Email: Email address for sending user notifications. When the new user signs-up, they will receive the verification code from this E-mail address. Please note that this email address should be verified by AWS Simple Email Service, as mentioned in the Configure Simple Email Service section.

  • Username: Email address to create the Superadmin user. User with this email will automatically get created after deployment is successful. The login credentials and deployment details will be sent to this email after successful deployment.

Note: The user, which will be created during the deployment will have Superadmin privileges. Only this user will have access to services like RainMaker Admin CLI.

  • Click the checkbox I acknowledge that this app creates custom IAM roles, resource policies and deploys nested applications.

  • Click the Deploy button and the deployment for the RainMaker backend start will start.

    upgrade7

  • The deployment of this repository will be completed in approximately 20–30 minutes.

  • You can check the status of the deployment of this SAR repository, from CloudFormation.

  • Go to AWS Console > Services > CloudFormation. The list of stacks deployed will be shown.

  • You will see an entry for the serverlessrepo-ESP-RainMaker-Core stack. CREATE_COMPLETE status indicates that, this repository is successfully deployed, as shown below:

    upgrade8

Upgrading the RainMaker Frontend

The RainMaker frontend needs to be upgraded separately.

There are two steps for upgrading the Dashboard.

Step 1: Upgrading from the SAR console.

This step is similar to the way the RainMaker backend components are upgraded or the RainMaker frontend component is deployed for the first time.

  • To trigger the upgrade of the RainMaker frontend deployments, go to the SAR repository service dashboard and select espdashboard.

    ui1

  • Scroll down and click the checkbox, I acknowledge that this app creates custom IAM roles and resource policies.

    ui2

  • The upgrade of the dashboard will start, and the status will be shown in the AWS console.

    ui3

  • After all the modules of the dashboard are upgraded, the status for all the modules will be shown as CREATE_COMPLETE and a message will be shown as below:

    ui4

Step 2: Upgrading from the RainMaker dashboard.

From the dashboard the admin user needs to check if any newer version of the dashboard is available. If any newer version is available, the admin user can upgrade it.

Here are the steps to upgrade the RainMaker frontend.

Log in to the RainMaker Dashboard.

At the bottom, the current version will be displayed.

upgrade9

Click the Check Updates button to see if any newer version is available. If there are no new versions are available, the below pop-up will be displayed.

upgrade10

If there are newer versions available for the dashboard, the below pop-up will be displayed.

upgrade11

To upgrade to this newer version, click the Update Dashboard button. The process to upgrade the dashboard will be started.

The upgrade generally takes around five minutes. After the upgrade is successful, you will need to refresh the screen or need to log out and log in again.

upgrade12

Upgrading the RainMaker Node Registration Module

The rainmaker-node-registration service is used for generating the bulk certificates for the nodes. Refer the below table for the corresponding node registration module version.

Node Registration Module to Corresponding RainMaker Version Supported

RainMaker VersionNode registration module version
2.5.0v19
2.2.0 to 2.4.0v18
2.0.2 to 2.1.2v17
2.0.0 to 2.0.1v16
1.1.30 to latestv14
1.1.28 to 1.1.29v13
1.1.27v12
1.1.22 to 1.1.26v11
1.1.17 to 1.1.25v10
1.1.12 to 1.1.16v9
  • Check your RainMaker node registration module version via AWS console.
    Go to Cloudformation > Stacks > rainmaker-node-registration > Tags > Version.

    node_registration_version

Note: If the above version is lower than the one mentioned in the table, rainmaker-node-registration must be upgraded.


Following are the steps for upgrading the node registration module.

Step 1: From the AWS console, go to the Services, search for CloudFormation, as shown below:

node_registration_1

Step 2: Select rainmaker-node-registration stack.

node_registration_2

Step 3: Click Update and click Replace current template.

Enter Amazon S3 URL as below:

https://esp-bulknode-batchjob.s3.amazonaws.com/<module_version>/espnoderegistration.yml

For example, for v19, enter https://esp-bulknode-batchjob.s3.amazonaws.com/v19/espnoderegistration.yml.

node_registration_3

Click Next.

Step 4: Keep all the parameters to the default values and click Next.

node_registration_4

Step 5: Enter the version (e.g., v19) and click Next.

node_registration_5

Step 6: Keep default configurations and select below options.

  • I acknowledge that AWS CloudFormation might create IAM resources.
  • I acknowledge that AWS CloudFormation might create IAM resources with custom names.
  • I acknowledge that AWS CloudFormation might require the following capability: CAPABILITY_AUTO_EXPAND

Click Update stack.

node_registration_6

The rainmaker-node-registration stack will be upgraded as shown below:

node_registration_7

SAR Upgrades: Voice Assistant Integration

You can upgrade your SAR repositories for voice assistant integration to the latest version by following the steps below.

Upgrading the ESP-RainMaker-3p-CognitoClients Repository

  1. Log in to AWS Developer Console

    • Open the AWS Developer Console.
    • Make sure you are selecting the same region where RainMaker deployed.
  2. Go to SAR service

    • Navigate to the Serverless Application Repository service.
    • In SAR, select Available applications and then choose Private applications.
  3. Select the repository

    • Find and click the ESP-RainMaker-3p-CognitoClients repository.

    ESP-RainMaker-3P-Integrations

  4. Open CloudFormation in a new tab

    • Open a new browser tab and go to the CloudFormation service.
    • Ensure that you are selecting the same region where RainMaker deployed.
  5. Locate the stack name

    • Search for the stack "serverlessrepo-ESP-RainMaker-3P-Integrations".
  6. Review CloudFormation parameters

    • Go to the Parameters section of the CloudFormation stack.

    CloudFormation stack parameters

  7. Fill SAR parameters

    • Return to the SAR tab and check the required parameter values.
    • Copy the CloudFormation parameter values and fill them into the respective SAR parameters.
  8. Deploy the upgrade

    • After filling all parameter values, accept the acknowledgment and click Deploy.

Upgrading the ESP-RainMaker-3P-Integrations Repository

  1. Log in to AWS Developer Console

    • Open the AWS Developer Console.
    • Make sure to select the us-east-1 region.
  2. Go to SAR service

    • Navigate to the Serverless Application Repository service.
    • In SAR, select Available Applications and then choose Private applications.
  3. Select the repository

    • Find and click the ESP-RainMaker-3P-Integrations repository.

    ESP-RainMaker-3P-Integrations

  4. Open CloudFormation in a new tab

    • Open a new browser tab and go to the CloudFormation service.
    • Ensure the region is us-east-1.
  5. View nested stacks

    • Toggle the View Nested button to see nested stacks.
  6. Locate the stack name

    • Search for the "serverlessrepo-ESP-RainMaker-3P-Integrations" stack.
  7. Review CloudFormation parameters

    • Go to the Parameters section of the CloudFormation stack.

    CloudFormation stack parameters

  8. Fill SAR parameters

    • Return to the SAR tab and check the required parameter values.
    • Copy the CloudFormation parameter values and fill them into the respective SAR parameters.
  9. Deploy the upgrade

    • After filling all parameter values, accept the acknowledgment and click Deploy.
  10. Repeat for other regions

    • Upgrade the stack in the following regions:
      • us-west-2
      • eu-west-1

Upgrading the ESP-RainMaker-3P-Integration-Addons Repository

To upgrade the ESP-RainMaker-3P-Integration-Addons repository, follow the same steps as for the ESP-RainMaker-3P-Integrations repository. However, note the following:

  • The ESP-RainMaker-3P-Integration-Addons repository is deployed in a single region, which is the region where your RainMaker deployment is located.
  • Ensure that you select the correct region before starting the upgrade process.