Created
February 20, 2021 18:20
-
-
Save alistaircol/b7bff7690d629e3fb69905b8b177b87a to your computer and use it in GitHub Desktop.
Terraform: Minio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "minio_s3_bucket" "ac_website" { | |
bucket = "ac-website" | |
acl = "public" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
minio = { | |
source = "aminueza/minio" | |
version = ">= 1.0.0" | |
} | |
} | |
required_version = ">= 0.13" | |
} | |
provider "minio" { | |
minio_server = var.minio_server | |
minio_region = var.minio_region | |
minio_access_key = var.minio_access_key | |
minio_secret_key = var.minio_secret_key | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
output "ac_website_id" { | |
value = minio_s3_bucket.ac_website.id | |
} | |
output "ac_website_url" { | |
value = minio_s3_bucket.ac_website.bucket_domain_name | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
minio_server = "localhost:9999" | |
minio_access_key = "W3jV4BKyEjsnKwed" | |
minio_secret_key = "EePilp8wrzPO79MHcxRYbXuRh4OEaOA67LhJ9EQO70hkIDzDD5Igvjxwj0CT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "minio_region" { | |
description = "Default MINIO region" | |
default = "us-east-1" | |
} | |
variable "minio_server" { | |
description = "Default MINIO host and port" | |
default = "localhost:9000" | |
} | |
variable "minio_access_key" { | |
description = "MINIO user" | |
default = "minio" | |
} | |
variable "minio_secret_key" { | |
description = "MINIO secret user" | |
default = "minio123" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment