{"id":21514895,"url":"https://github.com/getindata/mlflow-appengine-terraform","last_synced_at":"2026-03-19T20:42:21.021Z","repository":{"id":79872860,"uuid":"502042056","full_name":"getindata/mlflow-appengine-terraform","owner":"getindata","description":"Terraform module for deploying MLflow on Google Cloud AppEngine Flexible","archived":false,"fork":false,"pushed_at":"2023-04-16T11:37:58.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-17T05:40:18.605Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getindata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-10T12:51:09.000Z","updated_at":"2023-03-23T17:02:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"a76f7b42-84c9-40e4-982a-2f037d008591","html_url":"https://github.com/getindata/mlflow-appengine-terraform","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/getindata/mlflow-appengine-terraform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getindata%2Fmlflow-appengine-terraform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getindata%2Fmlflow-appengine-terraform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getindata%2Fmlflow-appengine-terraform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getindata%2Fmlflow-appengine-terraform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getindata","download_url":"https://codeload.github.com/getindata/mlflow-appengine-terraform/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getindata%2Fmlflow-appengine-terraform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28891448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-23T23:53:26.808Z","updated_at":"2026-02-02T14:04:23.666Z","avatar_url":"https://github.com/getindata.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MLFlow on AppEngine\nThis module deploys MLFlow app on App Engine Flex with IAP authorization.\n\n## Installation\nFollow the related blog post on GetInData's official site:\n[https://getindata.com/blog/deploying-mlflow-google-cloud-platform-using-app-engine/](https://getindata.com/blog/deploying-mlflow-google-cloud-platform-using-app-engine/)\n\n## Authorizing to MLFlow via IAP\n### As a user\nUsers need to have `IAP-secured Web App User` role in the project or on the specific IAP resource level. \n\n### As a service account\n#### Using bash\n1. Service account needs to have the following roles:\n   1. `IAP-secured Web App User`\n   2. `Service Account Token Creator`\n2. Obtaining authorization token via curl:\n```bash\nexport TOKEN=$(curl -s -X POST -H \"content-type: application/json\" -H \"Authorization: Bearer $(gcloud auth print-access-token)\" -d \"{\\\"audience\\\": \\\"${_IAP_CLIENT_ID}\\\", \\\"includeEmail\\\": true }\" \"https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/$(gcloud auth list --filter=status:ACTIVE --format='value(account)'):generateIdToken\"  | jq -r '.token')\n```\n3. Sending the request:\n```bash\ncurl -X GET https://\u003clink to app\u003e.appspot.com/api/2.0/mlflow/experiments/list -H \"Authorization: Bearer ${TOKEN}\" \n```\n\n#### Using Python\n1. Make sure that `google-cloud-iam` package is installed\n2. Use the following code\n```python\nfrom google.cloud import iam_credentials\nimport requests\nclient = iam_credentials.IAMCredentialsClient()\nsa = \"\u003cService Account Email\u003e\"\nclient_id = \"\u003cOAuth 2.0 Client ID\u003e\"\ntoken = client.generate_id_token(\n            name=f\"projects/-/serviceAccounts/{sa}\",\n            audience=client_id,\n            include_email=True,\n).token\n\nresult = requests.get(\"https://\u003clink to app\u003e.appspot.com/api/2.0/mlflow/experiments/list\", \n                     headers={\"Authorization\": f\"Bearer {token}\"})\nprint(result.json())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetindata%2Fmlflow-appengine-terraform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetindata%2Fmlflow-appengine-terraform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetindata%2Fmlflow-appengine-terraform/lists"}