aboutsummaryrefslogtreecommitdiff
path: root/terraform
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2021-01-10 22:23:13 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2021-01-10 22:23:13 +0100
commitdcf9d7e3efbbe791db1a21de1dd21abf2ff22f81 (patch)
tree4c16e01fed19fa5e5de8902785b450fdcd063ddb /terraform
parent16795884f3e915ed6d8b086fd5b6b93fc4858a27 (diff)
downloadinfra-dcf9d7e3efbbe791db1a21de1dd21abf2ff22f81.tar.gz
infra-dcf9d7e3efbbe791db1a21de1dd21abf2ff22f81.tar.bz2
infra-dcf9d7e3efbbe791db1a21de1dd21abf2ff22f81.tar.xz
infra-dcf9d7e3efbbe791db1a21de1dd21abf2ff22f81.zip
terraform in minio
Diffstat (limited to 'terraform')
l---------terraform/dns/terraform.d1
-rw-r--r--terraform/main.tf12
-rw-r--r--terraform/minio/README.md3
3 files changed, 13 insertions, 3 deletions
diff --git a/terraform/dns/terraform.d b/terraform/dns/terraform.d
deleted file mode 120000
index 11a3f4b..0000000
--- a/terraform/dns/terraform.d
+++ /dev/null
@@ -1 +0,0 @@
-../terraform.d \ No newline at end of file
diff --git a/terraform/main.tf b/terraform/main.tf
index 853a87d..71db6a8 100644
--- a/terraform/main.tf
+++ b/terraform/main.tf
@@ -1,8 +1,16 @@
terraform {
required_version = ">= 0.13"
- backend "local" {
- path = "../state/dns"
+ backend "s3" {
+ key = "trygvis-infra"
+ region = "us-east-1"
+ bucket = "terraform"
+ endpoint = "https://minio.trygvis.io"
+
+ skip_credentials_validation = true
+ skip_metadata_api_check = true
+ skip_region_validation = true
+ force_path_style = true
}
required_providers {
diff --git a/terraform/minio/README.md b/terraform/minio/README.md
new file mode 100644
index 0000000..18a7202
--- /dev/null
+++ b/terraform/minio/README.md
@@ -0,0 +1,3 @@
+# Using `mc` directly instead of Terraform
+
+ export MC_HOST_<alias>=https://<Access Key>:<Secret Key>@<YOUR-S3-ENDPOINT>