try mixing up secrets

This commit is contained in:
Noah Masur
2024-03-24 14:29:51 -04:00
parent 16e228b7b0
commit 7e0a0bbbd2
2 changed files with 6 additions and 23 deletions

View File

@ -17,20 +17,9 @@ terraform {
# image_file = one(fileset(path.root, "result/iso/nixos.iso"))
# }
variable "cloudflare_account_id" {
variable "cloudflare_r2_endpoint" {
type = string
description = "ID of the Cloudflare account"
}
variable "cloudflare_r2_access_key" {
type = string
description = "Non-sensitive access key ID for Cloudflare R2"
}
variable "cloudflare_r2_secret_key" {
type = string
description = "Sensitive access key secret for Cloudflare R2"
sensitive = true
description = "Domain for the Cloudflare R2 endpoint"
}
variable "vultr_api_key" {
@ -42,15 +31,12 @@ variable "vultr_api_key" {
provider "aws" {
region = "us-east-1"
access_key = var.cloudflare_r2_access_key
secret_key = var.cloudflare_r2_secret_key
skip_credentials_validation = true
skip_region_validation = true
skip_requesting_account_id = true
endpoints {
s3 = "https://${var.cloudflare_account_id}.r2.cloudflarestorage.com"
s3 = "https://${var.cloudflare_r2_endpoint}"
}
}