infra: import cloudflare
This commit is contained in:
parent
7279a85e3a
commit
a1bd6f1012
6 changed files with 213 additions and 4 deletions
|
@ -134,6 +134,7 @@
|
|||
aws
|
||||
vultr
|
||||
sops
|
||||
cloudflare
|
||||
]
|
||||
))
|
||||
colmena
|
||||
|
|
198
infra/cloudflare.tf
Normal file
198
infra/cloudflare.tf
Normal file
|
@ -0,0 +1,198 @@
|
|||
resource "cloudflare_record" "terraform_managed_resource_3bb7c82777ada1dcafb0cd16ae22bcac" {
|
||||
content = "149.28.143.116"
|
||||
name = "sin0"
|
||||
proxied = false
|
||||
ttl = 1
|
||||
type = "A"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_3d75642939f7653d8d51dfb93c518b07" {
|
||||
content = "18.177.132.61"
|
||||
name = "tyo0"
|
||||
proxied = false
|
||||
ttl = 1
|
||||
type = "A"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_3393fe6c746c9f55d841397c77900a59" {
|
||||
content = "2001:19f0:4400:7041:5400:5ff:fe1b:42d"
|
||||
name = "sin0"
|
||||
proxied = false
|
||||
ttl = 1
|
||||
type = "AAAA"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_03f9bd0678d8d76dc0e07892bc554393" {
|
||||
content = "2406:da14:f1f:2f00:e63f:64a0:7505:7534"
|
||||
name = "tyo0"
|
||||
proxied = false
|
||||
ttl = 1
|
||||
type = "AAAA"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_8e75c63ef8a2f186ebd104abb4766a1d" {
|
||||
content = "guanran928.github.io"
|
||||
name = "blog"
|
||||
proxied = false
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_9c931544d9033dee3e3ce376834217f9" {
|
||||
content = "tyo0.ny4.dev"
|
||||
name = "cinny"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_06b8ff66458e32be7ac8b614c46c17fa" {
|
||||
content = "tyo0.ny4.dev"
|
||||
name = "element"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_5423bda2c14dfc0785a3c58a4ebe537b" {
|
||||
content = "tyo0.ny4.dev"
|
||||
name = "git"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_de1f6297937e0c3f5f4cd38ebf0f37dc" {
|
||||
content = "tyo0.ny4.dev"
|
||||
name = "id"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_899b7a0a4077b12d429fae7221e3b5f0" {
|
||||
content = "sin0.ny4.dev"
|
||||
name = "ip"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_a69da702b5de0b419265bb7e82d8ff72" {
|
||||
content = "pek0.ny4.dev"
|
||||
name = "mastodon"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_bb02cc1465eb9b9876496b5825f32520" {
|
||||
content = "pek0.ny4.dev"
|
||||
name = "matrix"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_42a460db1bab9041993a1fb19ac40aec" {
|
||||
content = "tyo0.ny4.dev"
|
||||
name = "ntfy"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_07b0adf15b8e0a285b27e7998a4a7f91" {
|
||||
content = "tyo0.ny4.dev"
|
||||
name = "ny4.dev"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_f3507181cd0965a1040216e6e5d94adf" {
|
||||
content = "tyo0.ny4.dev"
|
||||
name = "pb"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_e8a39752064c17b2c91d10edf667e322" {
|
||||
content = "6222a3e0-98da-4325-be19-0f86a7318a41.cfargotunnel.com"
|
||||
name = "pek0"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_aab250e5d93fd4ceac718dbaaee7bdb3" {
|
||||
content = "tyo0.ny4.dev"
|
||||
name = "prom"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_b674a8508d41cd2541e351943c3b247e" {
|
||||
content = "sin0.ny4.dev"
|
||||
name = "reddit"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_365881b47c75cb8da9f515671a7e32f3" {
|
||||
content = "tyo0.ny4.dev"
|
||||
name = "rss"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_6d07c0bd7a64a0cbb7230426ed7d503e" {
|
||||
content = "tyo0.ny4.dev"
|
||||
name = "vault"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_e2500de6c975c90729b8f359361d8268" {
|
||||
content = "tyo0.ny4.dev"
|
||||
name = "www"
|
||||
proxied = true
|
||||
ttl = 1
|
||||
type = "CNAME"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_856ec5e567960bf847db2e814f18168b" {
|
||||
content = "google-site-verification=wBL5EFnbnt9lt2j_BtcwlXTaBFlFT563mC1MkCscnR8"
|
||||
name = "ny4.dev"
|
||||
proxied = false
|
||||
ttl = 3600
|
||||
type = "TXT"
|
||||
zone_id = "4b7a25e8fb5035c84820c26e454ed03d"
|
||||
}
|
||||
|
|
@ -15,3 +15,8 @@ provider "aws" {
|
|||
access_key = local.secrets.aws.access_key
|
||||
secret_key = local.secrets.aws.secret_key
|
||||
}
|
||||
|
||||
provider "cloudflare" {
|
||||
api_token = local.secrets.cloudflare.api_token
|
||||
}
|
||||
|
||||
|
|
|
@ -5,6 +5,8 @@ aws:
|
|||
secret_key: ENC[AES256_GCM,data:dMVwqkGnRkS5iR7zE7dQ6zuVSqCVFBnVI10v6o31K6068I942LyV7A==,iv:g/ZX5xplwRgsSwmy9Wjv6MchEegInAtgQ2aTwyS5p1U=,tag:cvlgeyMKZ+3gv2FrYb7+hA==,type:str]
|
||||
tofu:
|
||||
encryption: ENC[AES256_GCM,data:7+K0SYGOURiEbZ4IrOMJYYVWcSlLqxLv+9lZRUH/cH34qZ7CUt8vsSYP7VyRgCVqFr7sETGj1LPliPjJT2yge9HNbbuUnJ0U3RpLytl7z63nOLeSvUU=,iv:WGrozRmPerQ7iPJAqWmBy9XQ6SnOLrcLLwxdoa1ZIWQ=,tag:rcfNqW57WyVc4U0Iy2MHKA==,type:str]
|
||||
cloudflare:
|
||||
api_token: ENC[AES256_GCM,data:3zMyjbg0zfPCOoeVAABQWdKMCIXyJ7B2SVXSVv+UyMAHdluG1+ZUqg==,iv:UfnSkkcV6WbdN1uzn1rI/x4tdupAqxKQ1Ak+untcjJs=,tag:FbFpSarg/ihFGoWTdsG5VA==,type:str]
|
||||
sops:
|
||||
kms: []
|
||||
gcp_kms: []
|
||||
|
@ -20,8 +22,8 @@ sops:
|
|||
WmJlc0piL0s1c3dQd25ibFFZUVRjTzAKNh71/iOviUisewtjmAXmJJdq8KfI4S8X
|
||||
pzEyAoajZIjUfqAnCNxVjxett2bKb2liM/mpO1McOpSRnFe8cOXWMg==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
lastmodified: "2024-09-27T15:04:46Z"
|
||||
mac: ENC[AES256_GCM,data:5lpOT2/uaAkkRfbta3f9pRZekghJtvKhMx2mJRqoRq99yjot/YRe0t0ZFDUdiq2rtbKiHQWZdjG/7yrxcr61cMAoQeDLM5qW9+ri+HmjkhFn0dQ39VN8FzYL4bSYcZWNtMCZbCddcI1GZ2p0wu3KFzXi2jctb/mNp9SPGyW1vvw=,iv:FnloSZ10mT0F0MP5A5QOYfEvW62Z/ipJM6+w8fLZ50U=,tag:dyRyFiZ2xsZcXYE89Zzu/g==,type:str]
|
||||
lastmodified: "2024-11-07T04:03:30Z"
|
||||
mac: ENC[AES256_GCM,data:0EyArHp94S3Min2AKpJgbwBNo40OaNzVt2TM1awcj83DUqNMg79AYh0HMIMH3aFYqYDDE2CfYBWgnUHP+Nj1mOx4XjvveT31wAi3kdy0aUHz68x/AdYmymN8mxU6Neu1dT4n1ODbjXqkW0wLwd/BAs1t5qckQDwzQlfDyW6/koc=,iv:R6hI7mnkloYwdYrQx9iDqCwSZUtlFKdy717bUfyqq/U=,tag:/KqSHwyjXqnYVQB2iY9WkQ==,type:str]
|
||||
pgp: []
|
||||
unencrypted_suffix: _unencrypted
|
||||
version: 3.9.0
|
||||
version: 3.9.1
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -9,6 +9,9 @@ terraform {
|
|||
aws = {
|
||||
source = "registry.terraform.io/hashicorp/aws"
|
||||
}
|
||||
cloudflare = {
|
||||
source = "registry.terraform.io/cloudflare/cloudflare"
|
||||
}
|
||||
}
|
||||
|
||||
encryption {
|
||||
|
|
Loading…
Reference in a new issue