aboutsummaryrefslogtreecommitdiff
path: root/terraform-minio/root.tf
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2022-12-04 19:54:47 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2022-12-04 19:54:47 +0100
commitf2409b2f8e10874574af904e43094e069371e525 (patch)
treea1e1989a844c1a36db1073df76b4aec6e4aa5489 /terraform-minio/root.tf
parent6207a285d717fc48ea73e0956ab10729eebb3329 (diff)
downloadinfra-f2409b2f8e10874574af904e43094e069371e525.tar.gz
infra-f2409b2f8e10874574af904e43094e069371e525.tar.bz2
infra-f2409b2f8e10874574af904e43094e069371e525.tar.xz
infra-f2409b2f8e10874574af904e43094e069371e525.zip
Removing terraform-minio
Diffstat (limited to 'terraform-minio/root.tf')
-rw-r--r--terraform-minio/root.tf46
1 files changed, 0 insertions, 46 deletions
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
-}