Skip to content

Create server running mlflow under nginx on AWS EC2

License

Notifications You must be signed in to change notification settings

tbenst/mlflow-nixops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mlflow-nixops

Deploys mlflow tracking server using NixOps on AWS EC2.

Instructions

First, add secrets/basicauth.nix:

{ "user" = "password"; }

Now make secrets/keyId.nix:

"local_aws_profile"

Then, make secrets/boto.cfg (if using AWS bucket):

[Credentials]
aws_access_key_id = XXXXXXXXXXXXXXXXXXXX
aws_secret_access_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Finally make secrets/server_config.nix (for Amazon Aurora mysql):

{
  store_uri = "mysql://admin:[email protected]:3306/mlflow";
  artifact_root = "s3://xxxxxxxx/mlflow-artifacts/";
  hostname = "mlflow.xxxxx.com";
}

This was tested on tbenst/nixpkgs with commit 40e11a4fd00b82805e7f647dcbd32aeaa1eeffb5. Note that mlflow-server is not yet available on unstable as of 2020/01/09 (prob will be in a couple weeks). (one time):

nixops create ./mlflow-server.nix ./mlflow-server-ec2.nix -d mlflow-server-ec2

Then to (re)deploy with latest config:

nixops deploy -d mlflow-server-ec2

About

Create server running mlflow under nginx on AWS EC2

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages