In the following steps, make sure you have selected either “US West (Oregon)” or “US East (N. Virginia)” as your region in AWS. Those are the only two supported regions.
- Make sure your selected region is one of: US West (Oregon) or US East (N. Virginia).
- Go to CloudFormation
- Click “Create Stack”
- Paste this cloudformation link (
https://leo-cli-publishbucket-abb4i613j9y9.s3.amazonaws.com/leo/2.0.0/cloudformation-1652216325999.json
) into the “Specify an Amazon S3 template URL” field and click “Next”. - Specify a stack name (e.g. LeoPlatformDev, LeoPlatformStage) in the “Stack name” input field.
- Leave the Identity Pool ID blank. (In the future, we will support using an existing cognito pool. If you use an existing one here, you will have to manually setup auth roles).
- Fill out the
Logins
- On the Options page, Click “Next”.
- Select the checkmark that says: “I acknowledge that AWS CloudFormation might create IAM resources.”, then click “Create”.
- Done. It will take several (5-10) minutes for the stacks to be created.
In your command line:
- Install the LEO CLI:
npm install leo-cli -g
- Create a new project with the LEO CLI Quickstart:
leo-cli create quickstart <projectName>
Browse to the bots/sampleload directory in your new project and run a test.
cd <projectName>
cd bots/sampleload
npm test
- In AWS, Go to API Gateway
- Click on the link for the botmon for your stack. It will be formatted like this: <stack_name>-Botmon-<random_chars>
- In the left-side navigation panel, click on “Dashboard”.
- The page that loads will have a link at the top. The link for Botmon will say: Invoke this API at:
From a microservice, run: leo-cli create aggregations
. 4 bots and a cloudformation will be created that run from the bots created in the quickstart above.
Documentation for Entities and Aggregation bots can be found here: https://github.com/LeoPlatform/connectors/tree/master/entity-table
Want to hire an expert, or need technical support? Reach out to the Leo team: https://leoinsights.com/contact