AWS EC2 + Plesk Integration

Summary

This section helps you understand the process of integrating AWS EC2 provisioning with Plesk ONYX to the automation platform.

Pre-Requisites

  • AWS Account
  • Plesk AMI made available by Automation team (along with AMI id) in the Service Provider AWS subscription

Version of Product Supported

Plesk 

Billing Model Supported

Pre-paid

Benefits of Integrating

  • Automatic provisioning of EC2 instances
  • Auto install of Plesk licenses to manage the EC2 instances
  • Regular billing of customers

Step by step process of Integration

To integrate AWS combined with Plesk in the Automation Platform, you need to follow the steps given below:


1. Create new Cloud Template 

Here, you need to first create a cloud template for your AWS EC2 integration.

Home >> Settings >> Products/Services >> Build Cloud Template

-         Login to your Automation Platform panel.

-         Go to Home > Settings. (Find the  icon in the upper right corner of the home page)

-         Select Build Cloud Template under the Product/Services section.

-         Click on Add New. (Home >> Settings >> Products/Services >> Build Cloud Template >> Add Cloud Template)

-         In the Cloud Template Name column, write the name for the cloud template that you are building.

-         Add description of the Template.

-         Select the Applicable Datacenter from the drop-down. (For this you need to add a new datacenter in the Automation Platform. Click here to know the process.)

-         For subsequent cloud templates that you will be creating, Select Clone template from the dropdown under which the Selected cloud infrastructure and resources will be copied as it is to this Cloud Template. Copied configuration can be edited further as required. 

-         Click on Save.

2. Create Product 

Next, you need to create the product in the automation platform.

-        Go to Home >> Settings.

-        Select Packages under the Products/Services section.

-        Click on Add Product.

-        This will open the Add Product window.

-        Select the Product type to be ‘Cloud’. The new product will be created in the product type which you select.

-        Mention the Product Name. For ex: you can write AWS with Plesk.

-        Click on Save.

  • Add Product Group 

Once you add the Product Type, you have to create the product group. Product Group is the logical grouping of product under a group.

-         Click on Product Group on the packages section window.

-         This will open the Add Product Group window.

-         Select the Product Name which you created in the previous section. For Ex: we kept the Product name as AWS with Plesk.

-          Mention the name of the Product Group.

-          Apply taxes if any. You can also add multiple taxes.

-          Click on Save.

  • Create a new Plan 

After creating the Product Group, you need to create the plans.

-          Click on the Create a new Plan option on the packages window.

-          This will open the Create a New Plan window.

-          Select the Venture from the drop-down. (if you have different business units selling different products etc.)

-          Select the Product Type from the drop-down.

-          Select the Product Name from the drop-down.

-          Select the Product Group from the drop-down.

-          Mention the Plan name. You can keep a name per your suitability.

-          Click on Save.

3. Configure the Plan 

Next, you need to configure the plan created.

-          On the Packages section click on edit icon located in front of the plan created.

-          Under the details tab, you will find all the details of the plan.

-          Under Pricing, you can set billing cycle and discount for the plan. To unable any billing cycle write -1 in the textbox.

-          Click on Save.

-          Under the module setting, you have to mention the details like Module Name, Server Group, Amazon Key, Secret Key, Image ID, Security Group, Plan, and Region. Mention the Server Group as none.

You will get these details from your AWS panel: 

-        Login to your AWS Panel.

-        Under My Profile, click on My Security Credentials. Here, click on Access Keys (access key ID and secret access key). You will find the details of the Amazon Key here. Amazon Key in Automation Platform is Access key ID in the AWS Panel.

-        Plan detail you will get from the AWS marketplace.

-        Mention the Image ID.

For getting the Image ID, go to Home >> Settings >> Products/Services >> Product API Module. Click on Add Product API module. Here, 

  • In category, select Control Panel. 
  • In Products, select Plesk Panel.
  • In Module Setting, select Amazonwebservices.
  • Mention the API Label. This will be provided to you by the Automation team when they share the Plesk Image with you via the AWS account.
  • Write the API Value. 
  • Click on Save. 

-        Select region where the service will be available.

-        Click on Save.


4. Order Product 

Once the module setting is done and saved, you will get the Order URL. These are the unique URLs based on your plan per billing frequency. You will be able to use this and hyperlink to this via your website.

Customer can order the product directly from your marketplace/website. 

-         As soon as any order is placed the automation platform will generate the order in the Billing sections of the Service provider admin panel. On approval, the account will be created and end customer can start seeing the order in his customer panel.

5. Member (Customer Control) Panel Settings 

With this integration, you can manage the complete AWS account with Plesk from within your Automation platform member panel.

-          Go to My Services section.

-          Here, you will find all the details of the service. You can download the one-time key from here, that will be used to login into your VM.

-          Under the Server Control Center, in the Resource Details you will find a button of Login to your Panel, from where the user can directly login to his Plesk Panel.

-          Click on the Login to Your Panel button, this will take you to the Plesk Panel. Here, click on Tools & Settings on the left-hand side, click on License Management. You will find all the details of your Plesk Panel.

-         Under the Server Control Center only, click on Power Control button. You will find two options: Start and Stop. You can use these to start or stop your VMs. Please note that these changes will be automatically updated in the Plesk Panel also.