mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 18:30:13 +00:00
try mixing up secrets
This commit is contained in:
@ -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}"
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user