mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
fix: tf formatting
This commit is contained in:
parent
67ab65fa16
commit
6b2dfb4aa9
@ -1,13 +1,13 @@
|
|||||||
terraform {
|
terraform {
|
||||||
backend "s3" {}
|
backend "s3" {}
|
||||||
required_version = ">= 1.0.0"
|
required_version = ">= 1.0.0"
|
||||||
required_providers {
|
required_providers {
|
||||||
aws = {
|
aws = {
|
||||||
source = "hashicorp/aws"
|
source = "hashicorp/aws"
|
||||||
version = "5.42.0"
|
version = "5.42.0"
|
||||||
}
|
}
|
||||||
vultr = {
|
vultr = {
|
||||||
source = "vultr/vultr"
|
source = "vultr/vultr"
|
||||||
version = "2.19.0"
|
version = "2.19.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -18,25 +18,25 @@ terraform {
|
|||||||
# }
|
# }
|
||||||
|
|
||||||
variable "cloudflare_account_id" {
|
variable "cloudflare_account_id" {
|
||||||
type = string
|
type = string
|
||||||
description = "ID of the Cloudflare account"
|
description = "ID of the Cloudflare account"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "cloudflare_r2_access_key" {
|
variable "cloudflare_r2_access_key" {
|
||||||
type = string
|
type = string
|
||||||
description = "Non-sensitive access key ID for Cloudflare R2"
|
description = "Non-sensitive access key ID for Cloudflare R2"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "cloudflare_r2_secret_key" {
|
variable "cloudflare_r2_secret_key" {
|
||||||
type = string
|
type = string
|
||||||
description = "Sensitive access key secret for Cloudflare R2"
|
description = "Sensitive access key secret for Cloudflare R2"
|
||||||
sensitive = true
|
sensitive = true
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "vultr_api_key" {
|
variable "vultr_api_key" {
|
||||||
type = string
|
type = string
|
||||||
description = "API key for Vultr management"
|
description = "API key for Vultr management"
|
||||||
sensitive = true
|
sensitive = true
|
||||||
}
|
}
|
||||||
|
|
||||||
provider "aws" {
|
provider "aws" {
|
||||||
@ -71,23 +71,23 @@ provider "vultr" {
|
|||||||
# }
|
# }
|
||||||
|
|
||||||
resource "vultr_iso_private" "image" {
|
resource "vultr_iso_private" "image" {
|
||||||
# url = "https://${var.cloudflare_account_id}.r2.cloudflarestorage.com/${data.aws_s3_bucket.images.id}/${aws_s3_object.image.key}"
|
# url = "https://${var.cloudflare_account_id}.r2.cloudflarestorage.com/${data.aws_s3_bucket.images.id}/${aws_s3_object.image.key}"
|
||||||
url = "https://arrow.images.masu.rs/arrow.iso"
|
url = "https://arrow.images.masu.rs/arrow.iso"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "vultr_instance" "arrow" {
|
resource "vultr_instance" "arrow" {
|
||||||
plan = "vc2-1c-2gb"
|
plan = "vc2-1c-2gb"
|
||||||
region = "ewr"
|
region = "ewr"
|
||||||
iso_id = vultr_iso_private.image.id
|
iso_id = vultr_iso_private.image.id
|
||||||
label = "arrow"
|
label = "arrow"
|
||||||
tags = ["arrow"]
|
tags = ["arrow"]
|
||||||
enable_ipv6 = false
|
enable_ipv6 = false
|
||||||
disable_public_ipv4 = false
|
disable_public_ipv4 = false
|
||||||
backups = "disabled"
|
backups = "disabled"
|
||||||
ddos_protection = false
|
ddos_protection = false
|
||||||
activation_email = false
|
activation_email = false
|
||||||
}
|
}
|
||||||
|
|
||||||
output "host_ip" {
|
output "host_ip" {
|
||||||
value = vultr_instance.arrow.main_ip
|
value = vultr_instance.arrow.main_ip
|
||||||
}
|
}
|
||||||
|
@ -103,6 +103,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||||||
mullvad.enable = false;
|
mullvad.enable = false;
|
||||||
nixlang.enable = true;
|
nixlang.enable = true;
|
||||||
rust.enable = true;
|
rust.enable = true;
|
||||||
|
terraform.enable = true;
|
||||||
yt-dlp.enable = true;
|
yt-dlp.enable = true;
|
||||||
gaming = {
|
gaming = {
|
||||||
dwarf-fortress.enable = true;
|
dwarf-fortress.enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user