MinIO S3 Server Infrastructure as code with Terraform.
Table of Contents
Real users will access buckets by the following pattern:
$BUCKET/$USER/*
Example: backup/tyriis/android, documents/jazzlyn/
Member of groups will access buckets by the following pattern:
$BUCKET/$GROUP/*
Example: documents/techtales/, documents/familly/
K8s services will access buckets by the following pattern:
$CLUSTER/$SERVICE/*
Example: k3s.home/node-red/data
ToDo: check if it would be better to create a bucket for each service
*various commands
- lower-case characters
Pattern: [a-z_-]+
Terraform and pre-commit framework need to get initialized.
task terraform:init
task pre-commit:init
Name | Description |
---|---|
VAULT_TOKEN |
vault token |
AWS_ENDPOINT_URL_S3 |
endpoint url for the s3 state backend |
AWS_REGION |
region for the s3 state backend |
AWS_ACCESS_KEY_ID |
username for the s3 state backend |
AWS_SECRET_ACCESS_KEY |
password for the s3 state backend |
MINIO_ENDPOINT |
the minio endpoint FQDN without http(s) |
MINIO_USER |
the minio admin username |
MINIO_PASSWORD |
the minio admin password |
MINIO_ENABLE_HTTPS |
should be true |
Name | Version |
---|---|
terraform | >=1.5.0 |
local | 2.4.1 |
minio | 2.0.1 |
vault | 4.2.0 |
Name | Version |
---|---|
minio | 2.0.1 |
Name | Source | Version |
---|---|---|
cloudnative_pg_bucket | ./modules/bucket | n/a |
loki_user_bucket | ./modules/user-bucket | n/a |
terraform_user_bucket | ./modules/user-bucket | n/a |
thanos_user_bucket | ./modules/user-bucket | n/a |
volsync_bucket | ./modules/bucket | n/a |
No inputs.
No outputs.