From 1b6c1e339fa137fb4a33ae22c9aafc2ad0b77b44 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Wed, 1 Jan 2025 19:21:55 +0100 Subject: [PATCH] Add tofu import --- tofu/main.tf | 4 ++-- tofu/tofu-import.sh | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100755 tofu/tofu-import.sh diff --git a/tofu/main.tf b/tofu/main.tf index 14bdd2f..77be7b6 100644 --- a/tofu/main.tf +++ b/tofu/main.tf @@ -16,12 +16,12 @@ provider minio { resource "minio_s3_bucket" "assets" { bucket = "homepage-assets" - acl = "public-read" + acl = "private" } resource "minio_s3_bucket" "source" { bucket = "homepage-source" - acl = "public-read" + acl = "private" } output "minio_url" { diff --git a/tofu/tofu-import.sh b/tofu/tofu-import.sh new file mode 100755 index 0000000..cf946f2 --- /dev/null +++ b/tofu/tofu-import.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# name on the right is the bucket name on minio +tofu import minio_s3_bucket.source homepage-source +tofu import minio_s3_bucket.assets homepage-assets