diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-10 22:23:13 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-10 22:23:13 +0100 |
commit | dcf9d7e3efbbe791db1a21de1dd21abf2ff22f81 (patch) | |
tree | 4c16e01fed19fa5e5de8902785b450fdcd063ddb /terraform | |
parent | 16795884f3e915ed6d8b086fd5b6b93fc4858a27 (diff) | |
download | infra-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.d | 1 | ||||
-rw-r--r-- | terraform/main.tf | 12 | ||||
-rw-r--r-- | terraform/minio/README.md | 3 |
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> |