HPC at the push of an IoT button.
- An AWS IoT buttons.
- node.js 6.10 or later
- serverless, once node.js is installed run
npm install -g serverless
to install. - Copy of the Alces Flight template: download from the template URL in the AWS marketplace under Alces Flight Solo -> Personal HPC compute cluster, and save in an s3 bucket in your desired region (see notes).
- Everything (IoT, s3, lambdas) must be located in the same region and you need to specify the region in serverless.yml on the
region:
line.
- Use the configuration wizard at https://aws.amazon.com/iotbutton/getting-started/ to set up your button (if you haven't already).
- Optionally create and subscribe to an SNS topic for notifications about the HPC cluster startup (and uncomment code in serverless.yml)
- Edit policy.json and fill in the bucket in which you have the CLoudFormation template for Alces Flight Solo, and assign that policy in AWS IAM to a role called lambda-cloudformation (or if different, modify serverless.yml)
- Copy env.yml.sample to env.yml and edit, specifying full s3 path to that template and the other required details as required.
- Run
serverless deploy
to deploy the lambda functions required - Press your start button.
- Grab a coffee.
- Check outputs in the AWS CloudFormation console under the "MYHPC" stack (unless you changed the name in serverless.yml) to find the IP address, the key and username are as you specified in env.yml.
- Enjoy your Alces Flight High Performance Computing cluster.
- When done, press your stop button.