Installing Service Workbench using EC2 instance
- Download the Service Workbench on AWS source code using this link and then run the following commands:
sudo yum install -y git
git clone https://github.com/awslabs/service-workbench-on-aws-cn.git
Create a main Service Workbench on AWS configuration file for your installation. To do this:
a. Create an environment variable holding the stage name of your installation. The stage name is included in the name of the Amazon S3 storage bucket. Hence, it must be S3-compatible.
Example:
export STAGE_NAME=dev
Note: Set the environment variable when you open a new terminal window.
b. In the main configuration directory (
main/config/settings
), make a copy of the example configuration file using the suggested stage name demo. This creates thedev.yml
file.cp example.yml ${STAGE_NAME}.yml
c. In the newly created configuration file, uncomment and set values for the following values:
- awsRegion (for example:
us-east-1
oreu-west-2
): Ensure that you use the same Region when you are using the AWS Management Console. - solutionName (for example:
sw
): The solutionName is used in S3 bucket names so must be S3-compatible.
Note: Ensure that there is no leading space before the value name.
- awsRegion (for example:
Run the main installation script. This takes around 20 minutes.
./scripts/environment-deploy.sh ${STAGE_NAME}
Once the preceding step has completed, capture the root password and website URL. You can display the URL and root password again by running the following command:
scripts/get-info.sh ${STAGE_NAME}
Verify that Service Workbench is running by using the URL and root password, using the user
root@example.com
.