Add tofu import
This commit is contained in:
parent
1689a3126a
commit
1b6c1e339f
2 changed files with 7 additions and 2 deletions
|
@ -16,12 +16,12 @@ provider minio {
|
||||||
|
|
||||||
resource "minio_s3_bucket" "assets" {
|
resource "minio_s3_bucket" "assets" {
|
||||||
bucket = "homepage-assets"
|
bucket = "homepage-assets"
|
||||||
acl = "public-read"
|
acl = "private"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "minio_s3_bucket" "source" {
|
resource "minio_s3_bucket" "source" {
|
||||||
bucket = "homepage-source"
|
bucket = "homepage-source"
|
||||||
acl = "public-read"
|
acl = "private"
|
||||||
}
|
}
|
||||||
|
|
||||||
output "minio_url" {
|
output "minio_url" {
|
||||||
|
|
5
tofu/tofu-import.sh
Executable file
5
tofu/tofu-import.sh
Executable 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
|
Loading…
Reference in a new issue