Introduction
The Target Experience
Step 1 - Set Up Tooling
Step 2 - Clone the AWS SaaS Boost Repository
Step 3 - Provision AWS SaaS Boost into your AWS Account
Step 4 - Login to AWS SaaS Boost
Step 5 - Configure Tiers and Application Settings
Step 6 - Upload Your Application Services
Step 7 - (Optional) Deploy the Sample Application
Mapping Your Application to AWS SaaS Boost
This document describes the basic steps to install, configure, and start running a workload in AWS SaaS Boost. Refer to the other AWS SaaS Boost documents to get a more comprehensive view of the system.
While this document provides an overview of the steps to setup AWS SaaS Boost, it is not intended to provide a deep dive into the user experience or underlying technology. These details are covered in the User Guide and Developer Guide.
Before digging into the steps needed to set up AWS SaaS Boost, let's look at the basic elements of the environment to get a better sense of what AWS SaaS Boost enables. The diagram below shows the key components of the AWS SaaS Boost experience in the order of the setup flow.
The following is a breakdown of each of the steps:
- Set up the required tooling for the install process
- Clone the AWS SaaS Boost repository
- Provision AWS SaaS Boost into your AWS Account
- Access the AWS SaaS Boost administration web application
- Configure the tiers and application settings for your requirements
- Upload Docker images for each of the services in your application
At this stage, all the moving parts of the environment are now in place to begin onboarding tenants. You can use the AWS SaaS Boost application to onboard new tenants, or you can make API calls from your application to trigger the onboarding of new tenants.
The last piece to consider is the update process for your application. As changes are introduced into your application, you can upload the latest version to AWS SaaS Boost. Whenever a new version is uploaded it will be automatically deployed to all the tenants in your system. AWS SaaS Boost now has you ready to operate as a SaaS business. This includes operational and management tooling that's built into the AWS SaaS Boost environment.
Now that you have a feel for the AWS SaaS Boost technology and experience, let's look at the details that are involved in setting up AWS SaaS Boost.
AWS SaaS Boost uses a handful of technologies for the installation process. Install and configure each of these prerequisites for your operating system if they aren't already installed:
- Java 11 Amazon Corretto 11
- Apache Maven (see Installation Instructions)
- AWS Command Line Interface version 2
- Git
If you are unable to or would prefer not to install all of the prerequisites on your local machine, you can use an AWS Cloud9 instance to install AWS SaaS Boost. Follow the steps in Install using AWS Cloud9 and then continue with Step 3.
With the tooling in place, you can now download the code and installation scripts for AWS SaaS Boost. Open your terminal window and navigate to the directory where you want to store the AWS SaaS Boost assets. Issue the following command to clone the AWS SaaS Boost repository:
git clone https://github.com/awslabs/aws-saas-boost ./aws-saas-boost
Now that you have the code, AWS SaaS Boost needs to be installed in an AWS account that you own and manage. The installation process executes scripts that provision and configure all the resources that are needed to set up AWS SaaS Boost. The system where you run the installation should have at least 4 GB of memory and high speed Internet access.
Before running the installation, set up your AWS CLI:
- Set up an IAM user in your AWS account with full admin permissions.
- Set up your AWS CLI credentials with an AWS Access Key and default region.
If you are installing SaaS Boost in one of the AWS China Regions (Beijing/Ningxia), please follow the instructions in Provision AWS SaaS Boost in GCR or the Chinese version of Getting Started Guide.
To start the installation process, perform the following steps:
- From the terminal window, navigate to the directory where you've downloaded AWS SaaS Boost (aws-saas-boost).
- Invoke the install command.
- If you're running on Linux or OSX, run:
sh ./install.sh
- If you're running on Windows, run:
powershell .\install.ps1
- If you're running on Linux or OSX, run:
- Select the option for a new installation.
- Enter the full path to your AWS SaaS Boost directory (push enter for the current directory): /<mydir>/aws-saas-boost.
- Enter the name for this SaaS Boost environment (dev, QA, test, sandbox, etc.).
- Enter the email address of the AWS SaaS Boost administrator who will receive the initial temporary password.
- Choose the identity provider for the SaaS Boost admin web console: enter either
Cognito
orKeycloak
(push enter for Cognito). To use Keycloak you will need a registered domain name with a verified TLS (SSL) certificate, an existing Route53 Hosted Zone, and working DNS resolution.- If you choose
Keycloak
you will be prompted for the custom domain name you will be using for your Keycloak installation. - SaaS Boost will search for existing Route53 Hosted Zones and provide you a list to select from. Enter the number of the hosted zone for your existing custom domain to select it.
- SaaS Boost will search for existing ACM Certificates and provide you a list to select form. Enter the number of the certificate for your existing custom domain to select it.
- If you choose
- Choose whether you would like to use a custom domain name for the SaaS Boost admin web console. To use a custom domain name you will need a verified TLS (SSL) certificate, an existing Route53 Hosted Zone, and working DNS resolution.
- If you enter
y
you will be prompted for the custom domain name you want to use for your SaaS Boost admin web console installation. (Note that this domain must be different than your Keycloak domain if you're using Keycloak as your System User IdP). - SaaS Boost will search for existing Route53 Hosted Zones and provide you a list to select from. Enter the number of the hosted zone for your existing custom domain to select it.
- SaaS Boost will search for existing ACM Certificates and provide you a list to select form. Enter the number of the certificate for your existing custom domain to select it.
- If you enter
- Choose whether you would like the optional analytics pipeline and data warehouse to be installed. This is optional and will provision a Redshift cluster.
- If you enter
y
, you are prompted to setup QuickSight. To use Quicksight, you must have already registered for a Standard or Enterprise Quicksight account in your AWS Account by following the steps at https://docs.aws.amazon.com/quicksight/latest/user/signing-up.html.
- If you enter
- Review the settings for your installation. Double check the AWS account number and AWS Region you're about to install AWS SaaS Boost into. Enter
y
to proceed orn
to cancel.
The installation process will take 30-45 minutes to configure and provision all the resources (this will vary based on the options you've selected). Detailed logs from the installation process are stored in saas-boost-install.log.
As part of the installation process you will receive a message at the email address you provided during the installation process. This message includes a link with a URL to the AWS SaaS Boost administration application. The message appears as follows:
Copy the temporary password that is shown here. Once the installation script completes, it will also print out the same URL of the AWS SaaS Boost administration application. Use your web browser to navigate to the admin application. The following login appears:
Enter admin
for the username and enter the temporary password that was delivered in the email referenced earlier. Since you're logging in with a temporary password, you're prompted to enter a new password for your account. The screen appears as follows:
After you've logged in to the AWS SaaS Boost administration application, the first thing you need to do is configure the environment to align it with the needs of your application.
AWS SaaS Boost supports configuring your application settings based on tiers. Tiers allow you to package your SaaS offering for different segments of customers. For example, you may have a trial tier, or a premium tier in addition to your standard tier offering. AWS SaaS Boost creates a default tier for you. If you'd like to rename the default tier, or create additional tiers, select Tiers from the navigation on the left side of the screen. A page appears similar to the following:
Click on the Create Tier button to make new tiers or click on the tier name in the table listing to edit existing tiers. For convienience, newly created tiers will initially inherit the settings of the default tier. Refer to the User Guide for more details on how you can leverage tiers to optimize your SaaS application delivery.
Now that your tiers are defined, you need to configure the settings for your application and its services. Select Application from the navigation on the left side of the screen. A page appears similar to the following:
Start by giving your application a friendly Name. You do not need to fill out the Domain Name or SSL Certificate entries for testing. In production, make sure you have a certificate defined in Amazon Certificate Manager for the domain name you will host your SaaS application at. Note that registering a domain name and setting up SSL certificates must be done prior to configuring AWS SaaS Boost.
AWS SaaS Boost lets you configure as many "services" as necessary to support your workload. You provide a separate Docker image for each of your services. These services can be public or private and are configured independently of each other. Services do not share resources like file systems or databases, but they can communicate with each other inside the provisioned VPC network. Publicly accessible services are exposed via the Application Load Balancer and reachable via DNS over the Internet. Private services are not reachable from the Internet. Refer to the Developer and User Guides for a deeper dive on how to use services to best represent your SaaS application.
Create your first service by click on the New Service button. A popup dialog similar to the following will appear:
In this example, I've called my service main
. After clicking the Create Service button in the popup dialog, the new service will appear in the list of services similar to the following:
Click on the service name to expand the configuration options for this service. A dynamic form will appear for you to configure the settings and tier-based variations for each service that makes up your SaaS application.
While this Getting Started Guide doesn't document every field in the configuration screens, the options you choose are essential to getting your application working. See below for an example of the service configuration form filled out for one of the sample applications provided with SaaS Boost.
Once you've configured each of your services for every tier you've defined, SaaS Boost will automatically create an Amazon ECR image repository for each service. Before you can onboard any tenants into your system, you must upload a Docker image for each of the services in your application. From the Summary page, click the View details link next to the ECR Repository URL
listing for each service to see the proper Docker push commands to upload your image. You can also refer to the build shell scripts included with the sample apps to see one approach to automating the Docker push process.
This section goes through the process of uploading a sample application to give you a feel for how this process works. We've provided a simple example application as part of the AWS SaaS Boost repo.
Just as you would configure AWS SaaS Boost to support the requirements of your application, we must configure the application settings properly for this sample app. This sample application relies on the following configuration in AWS SaaS Boost.
- Enter a friendly name
Name
for the application such as Sample - Create a
New Service
and give it a name such as main - Make sure the
Publicly accessible
box is checked - Make sure the
Service Addressible Path
is /* - In the
Compute
section: - ForContainer OS
, select Linux - Set theContainer Tag
to latest - Set theContainer Port
to 8080 - Set theHealth Check URL
to /index.html - In the
Filesystem
section: - Enable theProvision a File System for the application
checkbox and select EFS - Set theMount point
to /mnt - In the
Database
section: - Enable theProvision a database for the application
checkbox - Select any of the available databases (MariaDB with a db.t3.micro instance class will probably provision the fastest) - Enter a Database Name, Username, and Password. You do not need to provide a SQL file for database initialization. - Under the
default
Tier settings: - SetCompute Size
to Medium -Minimum Instance Count
andMaximum Instance Count
can be 1 and 1 respectively - Select thedb.t3.micro
instance class for your Database.
Your config should look similar to the following:
Once you have saved your Application Setup, SaaS Boost will create an ECR repo for each defined service in your application. Once CloudFormation has finished updating your SaaS Boost install you can build and containerize the sample application. To create a Docker image of this sample application, you will need to have Docker running on your local machine. Navigate to the samples/java/ directory in your clone of the AWS SaaS Boost repo and execute the build script which will build, containerize, and push your containerized application to the AWS SaaS Boost ECR repository. You can review the steps in this example shell script to see how you might enhance your current build process for your application to integrate with AWS SaaS Boost.
cd aws-saas-boost/samples/java
sh build.sh
This script prompts you for your AWS SaaS Boost environment. Enter the environment label that you specified when you ran the AWS SaaS Boost installer. The script will then prompt you for the name of the service you're building. In this example, use main
. Note that service names are case-sensitive. When this script finishes, you have published your application service to the AWS SaaS Boost application repository. As you make changes to the application, you can execute the build script again to update your application.
For multi service applications, you'd repeat the same steps for each service you configure.
You can now onboard a new tenant which will provision all the necessary infrastructure to support your applicaiton and deploy all of the services you've configured. Navigate to the Onboarding page of the administration application and click the Provision Tenant button. Once the onboarding process completes, you'll be able to access that tenant's instance of the sample application by navigating to the Tenants page of the administration application, then go to the tenant detail page, and finally clicking on the Load Balancer DNS link.
This guide provides a high-level view into the basic steps that are required to set up AWS SaaS Boost. As you think about moving a workload into AWS SaaS Boost, examine the broader capabilities of AWS SaaS Boost in more detail. This means looking more carefully at the configuration options for your application and how they map to the different AWS SaaS Boost application settings.
After familiarizing yourself with the overall experience, you will have a better sense about how your application fits in the AWS SaaS Boost model. A review of the AWS SaaS Boost User Guide and Developer Guide will also allow you to better understand how you might configure AWS SaaS Boost to align with the needs of your solution.
The steps needed to containerize your workload vary depending on the nature of your application. You can use the Dockerfile examples in the sample apps provided with AWS SaaS Boost. Here are some additional resources that provide information on containerizing applications: