diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2022-12-04 19:54:47 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2022-12-04 19:54:47 +0100 |
commit | f2409b2f8e10874574af904e43094e069371e525 (patch) | |
tree | a1e1989a844c1a36db1073df76b4aec6e4aa5489 | |
parent | 6207a285d717fc48ea73e0956ab10729eebb3329 (diff) | |
download | infra-f2409b2f8e10874574af904e43094e069371e525.tar.gz infra-f2409b2f8e10874574af904e43094e069371e525.tar.bz2 infra-f2409b2f8e10874574af904e43094e069371e525.tar.xz infra-f2409b2f8e10874574af904e43094e069371e525.zip |
Removing terraform-minio
-rw-r--r-- | terraform-minio/README.md | 5 | ||||
-rw-r--r-- | terraform-minio/main.tf | 29 | ||||
-rw-r--r-- | terraform-minio/root.tf | 46 |
3 files changed, 0 insertions, 80 deletions
diff --git a/terraform-minio/README.md b/terraform-minio/README.md deleted file mode 100644 index 0e54eba..0000000 --- a/terraform-minio/README.md +++ /dev/null @@ -1,5 +0,0 @@ -Special Terraform setup for creating user's in Minio for keeping other -Terraform setups in Minio. - - export TF_VAR_minio_access_key= - export TF_VAR_minio_secret_key= diff --git a/terraform-minio/main.tf b/terraform-minio/main.tf deleted file mode 100644 index a08c04a..0000000 --- a/terraform-minio/main.tf +++ /dev/null @@ -1,29 +0,0 @@ -terraform { - required_version = ">= 0.13" - - backend "local" { - path = "state" - } - - required_providers { - minio = { - source = "tidalf/minio" - version = "1.1.1" - } - } -} - -variable "minio_access_key" { - type = string -} - -variable "minio_secret_key" { - type = string -} - -provider "minio" { - minio_server = "minio.trygvis.io:443" - minio_ssl = "true" - minio_access_key = var.minio_access_key - minio_secret_key = var.minio_secret_key -} diff --git a/terraform-minio/root.tf b/terraform-minio/root.tf deleted file mode 100644 index dcf4be4..0000000 --- a/terraform-minio/root.tf +++ /dev/null @@ -1,46 +0,0 @@ -resource "minio_s3_bucket" "terraform" { - bucket = "terraform" - acl = "none" -} - -resource "minio_iam_policy" "terraform-access" { - name = "terraform-access" - policy= <<EOF -{ - "Version":"2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "s3:ListBucket" - ], - "Resource": "arn:aws:s3:::terraform-trygvis" - }, - { - "Effect": "Allow", - "Action": [ - "s3:ListBucket", - "s3:GetObject", - "s3:PutObject" - ], - "Resource": "arn:aws:s3:::terraform/*" - } - ] -} -EOF -} - -# Users - -resource "minio_iam_user" "terraform-trygvis" { - name = "terraform-trygvis" -} - -resource "minio_iam_user_policy_attachment" "terraform-trygvis" { - user_name = minio_iam_user.terraform-trygvis.id - policy_name = minio_iam_policy.terraform-access.id -} - -output "terraform-trygvis_secret" { - value = minio_iam_user.terraform-trygvis.secret -} |