You can deploy and build this workshop application EITHER in an AWS-provided temporary account provided by your AWS team at an AWS-managed event, OR use your own development account if you’re following at an event hosted outside of an AWS-managed event or taking in the workshop at your own pace at home, school or work. Choose one of the following two sections below as applicable to your situation, and then continue on from “Machine Setup”.
Cloud9 provides a simple way to walk through this workshop with an environment that already has all the required prerequisites. From the Cloud9 console (you can quickly find this by typing Cloud9 into the search bar of the AWS Console landing page), you can create a new environment. You might want to name the environment “momento_workshop” to make it easy to identify later. You should also choose the t3.medium instance type as this is the smallest with enough memory to complete all steps in this workshop.
Once your new Cloud9 environment is created, you’ll see it listed in the Cloud9 console. Select it, and click on “Open in Cloud9”. It may take a short time to start up, but once it is running, refer to the screenshot below for next steps.
When the environment is ready, open Preferences and scroll to “AWS Settings”. Disable the AWS-managed temporary credentials. Now you can close out the Preferences panel and continue.
You can also use your own local environment on your laptop or desktop if you prefer (and you don’t mind installing any missing prerequisites).
Please install the following software on your machine if it is not already there (these are already included in Cloud9 environments):
NOTE: If you’re using a temporary AWS-provided environment at an AWS event, you can skip this section, and instead just give the Cloud9 SSM Role administrator level privileges (this will allow it to deploy CloudFormation stacks, create resources for the lab, etc). Here’s how to do this:
[Using your own environment? You’ll need the information below!] You will need to setup the AWS CLI to point to your AWS account. If you have not done this before, please follow the guide from AWS. You’ll need to configure credentials in Cloud9, and if your local laptop/desktop is not already configured you’ll also need to follow this procedure. IMPORTANT: be sure to configure your default region to be the same region where you created your new Momento “pizza” cache. To simplify the access requirements, it’s recommended that you login using credentials for a user/role which has AdministratorAccess or PowerUserAccess policy applied. Identities in production accounts are likely to be more restrictive - it’s simplest to use an AWS-provided temporary account or use a personal dev account and login as Admin. You can use the shell window at the bottom of the Cloud9 IDE screen for this, or use your own shell on your local environment.
A couple of tips:
aws sts get-caller-identity
command.The source code for the workshop is in GitHub. Please clone the momento-pizza-app repository to your Cloud9 or local environment. You can use the following command in a terminal to clone to your git directory and make the cloned repo your current directory.
git clone https://github.com/momentohq/momento-pizza-app.git
cd momento-pizza-app
We did it! We’re now fully setup with Momento and AWS - time to work with some code 🚀