Terraform Deployment Guide

Deploy Kubeflow with RDS and S3 using Terraform

Note: Terraform deployment options are still in preview.


This guide will walk you through using Terraform to:

  • Create a VPC
  • Create an EKS cluster
  • Create a S3 bucket
  • Create an RDS DB instance
  • Deploy Kubeflow with RDS as a KFP and Katib persistence layer and S3 as an artifact store

Terraform documentation can be found here.


Be sure that you have satisfied the installation prerequisites before working through this guide.

Specifially, you must:

Additionally, ensure you are in the REPO_ROOT/deployments/rds-s3/terraform folder.

If you are in repository’s root folder, run:

cd deployments/rds-s3/terraform

Deployment Steps


  1. Create an IAM user to use with the Minio Client

    Create an IAM user with permissions to get bucket locations and allow read and write access to objects in an S3 bucket where you want to store the Kubeflow artifacts. Take note of the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY of the IAM user that you created to use in the following step, which will be referenced as TF_VAR_minio_aws_access_key_id and TF_VAR_minio_aws_secret_access_key respectively.

  2. Define the following environment variables:

    # Region to create the cluster in
    export CLUSTER_REGION=
    # Name of the cluster to create
    export CLUSTER_NAME=
    # AWS access key id of the static credentials used to authenticate the Minio Client
    export TF_VAR_minio_aws_access_key_id=
    # AWS secret access key of the static credentials used to authenticate the Minio Client
    export TF_VAR_minio_aws_secret_access_key=
    # true/false flag to configure and deploy with RDS
    export USE_RDS="true"
    # true/false flag to configure and deploy with S3
    export USE_S3="true"
  3. Save the variables to a .tfvars file:

    cat <<EOF > sample.auto.tfvars
    # The below values are set to make cleanup easier but are not recommended for production

(Optional) Configure Culling for Notebooks

Enable culling for notebooks by following the instructions in configure culling for notebooks guide.

All Configurations

A full list of inputs for the terraform stack can be found here.


View a preview of the configuration you are about apply:

terraform init && terraform plan


Run the following command:

make deploy

Connect to your Kubeflow dashboard

For information on connecting to your Kubeflow dashboard depending on your deployment environment, see Port-forward (Terraform deployment). Then, log into the Kubeflow UI.


Uninstall Kubeflow on AWS with a single command.

make delete