Add tofu import

This commit is contained in:
GHOSCHT 2025-01-01 19:21:55 +01:00
parent 1689a3126a
commit 1b6c1e339f
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 7 additions and 2 deletions

View file

@ -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" {

5
tofu/tofu-import.sh Executable file
View file

@ -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