bucket_storage.tf
- Creates bucket that will store Ml Flow artifacts. Secret is created to hold url to bucket.
cloud_run.tf
- Holds configuration for the CloudRun implementation. The resources assigned are sufficient for the low traffic, cpu will be assigned only when the application is in use.
db_main.tf
- DB instance using postgres (just instance itself database is created in separate file).
db_mlflow.tf
- Data-base and its user, the user data (username and password) and url for database are placed in secrets as it will be used later.
iam.tf
- IAM policy for database, secrets and bucket.
main.tf
- Basic data about the project setup.
service_accounts.tf
- Service account for the CloudRun and for objects creation in bucket.
variables.tf
- Variables that need to be adjusted for individual project.
Name | Version |
---|---|
terraform | >= 1.5 |
4.58.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
bucket_users_list | List of users | list |
[] |
no |
env | Name of the environment | string |
"prod" |
no |
image_name | Name of the imagine that will be used. | string |
"mlflow-imagine" |
no |
project_name | Full name of the project | string |
"test-ml-flow-terraform" |
no |
region | GCP region that will be used for the project | string |
"europe-west2" |
no |
vpn_to_access_db | VPN that will be used to connect to DB, while using 0.0.0.0/0 the application will be available from any IP (it will be accessible from the internet). | string |
"0.0.0.0/0" |
no |
The inputs need to be updated with correct values before the project can be started. | ||||
Either in variables.tf or in terraform.tfvars. |
No outputs.