Terraform is a popular infrastructure-as-code tool for managing cloud resources. We have published a set of terraform templates here for setting up Metaflow on AWS. Terraform needs to be installed on your system in order to use these templates.
git clone email@example.com:outerbounds/terraform-aws-metaflow.git
Install aws CLI
This is the official CLI tool ("aws") published by Amazon for working with AWS. It will be used by Terraform when applying our templates (e.g. for authentication vs AWS). Please install it by following these instructions.
kubectl is a standard CLI tool for working with Kubernetes clusters. It will be used by Terraform when applying our templates (e.g. for deploying some services to your Amazon Elastic Kubernetes Service (EKS) cluster). Please install it by following these instructions.
2. Provision AWS Resources
See here for the exact set of resources to be provisioned.
Login to AWS
You must be logged onto AWS as an account with sufficient permissions to provision the required resources. Use the AWS CLI (aws)
Initialize your Terraform Workspace
terraform-aws-metaflow/examples/eks_argo directory, run
Apply terraform Template to Provision AWS Infrastructure
From your local terraform-aws-metaflow/examples/eks_argo directory, run
A plan of action will be printed to the terminal. You should review it before accepting. See details for what to expect. This command typically takes ~20 minutes to execute.
3. End User Setup Instructions
When the command above completes, make note of the EKS cluster name (it is a short string that starts with mf-). Use the AWS CLI (aws) to generate cluster configuration
aws eks update-kubeconfig --name <cluster name> configure
Create the file
~/.metaflowconfig/config.json with the contents of
config.json. If this file already exists, keep a backup of it and move it aside first.