Skip to content

techtales-io/terraform-minio

Repository files navigation

taskfile pre-commit renovate terraform Remote State file

Terraform MinIO for techtales.io

MinIO S3 Server Infrastructure as code with Terraform.

Table of Contents

Concept

Policy

Users

Real users will access buckets by the following pattern:

$BUCKET/$USER/*

Example: backup/tyriis/android, documents/jazzlyn/

Groups

Member of groups will access buckets by the following pattern:

$BUCKET/$GROUP/*

Example: documents/techtales/, documents/familly/

K8s services and service accounts

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

Usage

*various commands

Code-Style

Terraform

Best practices

terraform-best-practices.com

Naming of Terraform resources

  • lower-case characters

Pattern: [a-z_-]+

Getting Started

Prerequisties

Initialize repository

Install dependencies with mise

mise install

Terraform and pre-commit framework need to get initialized.

task terraform:init
task pre-commit:init

ENV

Name Description
VAULT_TOKEN vault token (not required for atlantis)
VAULT_ADDR the vault address
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

Releases

No releases published

Packages

No packages published

Contributors 5

Languages