Terraform v1.0.1 on linux_amd64
This directory contains the Terraform configuration for the MLflow Server stack.
The Terraform configuration is based on the Terraform documentation and the AWS provider.
The Terraform configuration is split into two files:
iam.tf
: AWS IAM configuration.locals.tf
: The Terraform locals file.network.tf
: The network configuration.outputs.tf
: The outputs configuration.providers.tf
: The Terraform providers file.rds.tf
: AWS RDS database configuration (Backend store).s3.tf
: AWS S3 configuration (Artifact store).server.tf
: AWS App Runner configuration (MLflow Server).variables.tf
: The Terraform variables file.
The Terraform variables file contains the following variables:
name
- (Optional) The name of the stack. Defaults tomlflow
.environment
- (Optional) The environment of the stack. Defaults todev
.region
- (Optional) The AWS region. Defaults tous-east-1
.tags
- (Optional) The tags to apply to the stack. Defaults to{}
.vpc_id
- (Optional) The VPC ID. Defaults tonull
which means that the VPC, subnets, securitiy groups will be created.vpc_security_group_ids
- (Optional) The VPC security group IDs. Defaults tonull
, it will be used only if vpc_id is set.service_cpu
- (Optional) The number of CPU cores to allocate to the MLflow Server. Defaults to1024
.service_memory
- (Optional) The amount of memory to allocate to the MLflow Server. Defaults to2048
.mlflow_username
- (Optional) The username to use for the MLflow Server. Defaults tomlflow
.mlflow_password
- (Optional) The password to use for the MLflow Server. Defaults tomlflow
.artifact_bucket_id
- (Optional) The S3 bucket ID to use for the MLflow Server artifact store. If specified, MLflow will use this bucket to store artifacts. Otherwise, this module will create a dedicated bucket.db_skip_final_snapshot
- (Optional) Whether to skip creating a final DB snapshot. Default isfalse
.db_deletion_protection
- (Optional) Whether to enable deletion protection on the DB instance. Default istrue
.db_instance_class
- (Optional) The DB instance class to use. Defaults todb.t2.micro
.db_subnet_ids
- (Optional) The DB subnet IDs. Defaults tonull
, it will be used only if vpc_id is set.db_auto_pause
- (Optional) Whether to automatically pause the DB instance when it's not in use. Defaults totrue
.db_auto_pause_seconds
- (Optional) The number of seconds to wait before pausing the DB instance. Defaults to1800
.db_min_capacity
- (Optional) The minimum capacity of the DB instance. Defaults to2
.db_max_capacity
- (Optional) The maximum capacity of the DB instance. Defaults to64
.
The Terraform providers file contains the following providers:
aws
: The AWS provider.
The Terraform locals file contains the following locals:
name
- The name of the stack. (e.g.{name}-{environment}
)availability_zones
- The availability zones for the region.db_username
- The username to use for the MLflow Server database.db_password
- The password to use for the MLflow Server database.db_port
- The port to use for the MLflow Server database.create_dedicated_bucket
- Whether to create a dedicated S3 bucket for the MLflow Server artifact store.db_subnet_ids
- The DB subnet IDs.create_dedicated_vpc
- Whether to create a dedicated VPC.vpc_id
- The VPC ID.create_dedicated_bucket
- Whether to create a dedicated S3 bucket for the MLflow Server artifact store.artifact_bucket_id
- The S3 bucket ID to use for the MLflow Server artifact store.app_port
- The port to use for the MLflow Server.create_mlflow_password
- Whether to create a password for the MLflow Server.mlflow_password
- The password to use for the MLflow Server.tags
- The tags to apply to the stack (AddName
andEnvironment
tags).
The Terraform outputs file contains the following outputs:
artifact_bucket_id
- The S3 bucket ID to use for the MLflow Server artifact store.service_url
- The URL to the MLflow Server.mlflow_username
- The username to use for the MLflow Server.mlflow_password
- The password to use for the MLflow Server.status
- The status of the MLflow Server service.