initial commit

This commit is contained in:
Kazuhiro MUSASHI 2023-07-09 18:10:34 +09:00
commit 60a6f65501
7 changed files with 400 additions and 0 deletions

34
.gitignore vendored Normal file
View File

@ -0,0 +1,34 @@
# Local .terraform directories
**/.terraform/*
# .tfstate files
*.tfstate
*.tfstate.*
# Crash log files
crash.log
crash.*.log
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
# password, private keys, and other secrets. These should not be part of version
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
*.tfvars
*.tfvars.json
# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json
# Include override files you do wish to add to version control using negated pattern
# !example_override.tf
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*
# Ignore CLI configuration files
.terraformrc
terraform.rc

25
.terraform.lock.hcl Normal file
View File

@ -0,0 +1,25 @@
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
provider "registry.terraform.io/cloudflare/cloudflare" {
version = "4.9.0"
constraints = "~> 4.0"
hashes = [
"h1:rZWJfgov+JEtwmilHqEuc5pdlIsFv8CpQlqvOWmGq30=",
"zh:0675551cf81db9c137b40e3f10020b1a99906d40be0b5db04be0faf8439fc5e8",
"zh:0df188403a13b3999a102f813d7bba4e87a796b93b00db39ee94f0e811819d41",
"zh:19b1480989faa856dbdd26d5a384efd5778b569d5ff111a64841513c5f6f94f6",
"zh:3707be76a250f1d4da78e3a309e542c261dd7ee37c6796182c7d515dab9c7f51",
"zh:51635170540e66f15f021451ec5fbb76c2e9c611fa9d73f7beb09687e28ad6ed",
"zh:55b4cf10f45ddd8f7066d05b65c7a8ad2205013b7f4b2d2c037fbdabf66bdb84",
"zh:66d266277686c2e5a1deb0be32c42eee3e8ea6cf5ff7d78e661a93658c65cee6",
"zh:720615ff6003ac5c2cadd25e07e5eaa7c15b1e39207bce050fea65dba6658ae7",
"zh:85ea3ff9fb01fcc26d83e6dbec188f8f1cd7837cd5300c8da80b24d018c69100",
"zh:890df766e9b839623b1f0437355032a3c006226a6c200cd911e15ee1a9014e9f",
"zh:b331e1d5df54a31c908d40f3a8f9f616a846c6bc836219dbede49c254fc59e02",
"zh:b714eeacb26dc349292205aa19eff4f983d7555ae87b0107e8c48445d871665c",
"zh:b9e5934b502f39f869f9910040998a52c647be48ba199df1a9b8720124fc3d36",
"zh:bb9162845bf4a8c245fc6bc1e712e38e92fb48412218e080308abaf7bc2d75ed",
"zh:d2bd9590e2b39bc80e80f9dfc566424c2296ff02f81e6e49d4eb8d67b44a0123",
]
}

4
.terraformignore Normal file
View File

@ -0,0 +1,4 @@
# controls what directories get uploaded to TFC for remote runs
#
# deny by default
.terraform

128
everun.club.tf Normal file
View File

@ -0,0 +1,128 @@
# __generated__ by Terraform
# Please review these resources and move them into your main configuration files.
# __generated__ by Terraform from "e9c231bc72eb7397b4d12f8c6563a35c/8d68c773920a7373cd912ad78cc9052c"
resource "cloudflare_record" "everun_root" {
allow_overwrite = null
comment = null
name = "everun.club"
priority = null
proxied = false
tags = []
ttl = 1
type = "A"
value = "52.193.98.253"
zone_id = "e9c231bc72eb7397b4d12f8c6563a35c"
}
# __generated__ by Terraform from "e9c231bc72eb7397b4d12f8c6563a35c/dd3ae0b6c8d62aa95671602598f3644d"
resource "cloudflare_record" "everun_mail_ns2" {
allow_overwrite = null
comment = null
name = "mail"
priority = null
proxied = false
tags = []
ttl = 1
type = "NS"
value = "ns1.dns.ne.jp"
zone_id = "e9c231bc72eb7397b4d12f8c6563a35c"
}
# __generated__ by Terraform from "e9c231bc72eb7397b4d12f8c6563a35c/4a2529a1c93fdb7bad6b06c5567eb773"
resource "cloudflare_record" "everun_www" {
allow_overwrite = null
comment = null
name = "www"
priority = null
proxied = true
tags = []
ttl = 1
type = "A"
value = "52.193.98.253"
zone_id = "e9c231bc72eb7397b4d12f8c6563a35c"
}
# __generated__ by Terraform from "e9c231bc72eb7397b4d12f8c6563a35c/36633941dd30b52590af49b090a8bcef"
resource "cloudflare_record" "everun_staging" {
allow_overwrite = null
comment = null
name = "staging"
priority = null
proxied = true
tags = []
ttl = 1
type = "A"
value = "52.193.98.253"
zone_id = "e9c231bc72eb7397b4d12f8c6563a35c"
}
# __generated__ by Terraform from "e9c231bc72eb7397b4d12f8c6563a35c/a984285778e26bb3bd6498d36bbfb45d"
resource "cloudflare_record" "everun_mx2" {
allow_overwrite = null
comment = null
name = "everun.club"
priority = 50
proxied = false
tags = []
ttl = 1
type = "MX"
value = "route2.mx.cloudflare.net"
zone_id = "e9c231bc72eb7397b4d12f8c6563a35c"
}
# __generated__ by Terraform from "e9c231bc72eb7397b4d12f8c6563a35c/09d648d56aa2f25b5f94c7e865586672"
resource "cloudflare_record" "everun_mail_ns1" {
allow_overwrite = null
comment = null
name = "mail"
priority = null
proxied = false
tags = []
ttl = 1
type = "NS"
value = "ns2.dns.ne.jp"
zone_id = "e9c231bc72eb7397b4d12f8c6563a35c"
}
# __generated__ by Terraform from "e9c231bc72eb7397b4d12f8c6563a35c/a5ccf3b288dbc6b054f2ecedce7b8191"
resource "cloudflare_record" "everun_txt" {
allow_overwrite = null
comment = null
name = "everun.club"
priority = null
proxied = false
tags = []
ttl = 1
type = "TXT"
value = "v=spf1 include:_spf.mx.cloudflare.net ~all"
zone_id = "e9c231bc72eb7397b4d12f8c6563a35c"
}
# __generated__ by Terraform from "e9c231bc72eb7397b4d12f8c6563a35c/91ea826db4479bb3d9faa6553d0607a1"
resource "cloudflare_record" "everun_mx3" {
allow_overwrite = null
comment = null
name = "everun.club"
priority = 41
proxied = false
tags = []
ttl = 1
type = "MX"
value = "route1.mx.cloudflare.net"
zone_id = "e9c231bc72eb7397b4d12f8c6563a35c"
}
# __generated__ by Terraform from "e9c231bc72eb7397b4d12f8c6563a35c/cee98d52171238315371b9e1ebf4d0b5"
resource "cloudflare_record" "everun_mx1" {
allow_overwrite = null
comment = null
name = "everun.club"
priority = 5
proxied = false
tags = []
ttl = 1
type = "MX"
value = "route3.mx.cloudflare.net"
zone_id = "e9c231bc72eb7397b4d12f8c6563a35c"
}

170
kazu634.com.tf Normal file
View File

@ -0,0 +1,170 @@
# __generated__ by Terraform
# Please review these resources and move them into your main configuration files.
# __generated__ by Terraform from "4f8b5b09ec9da6bff313cb0111b96603/66575d0000695bea8c22bb168c7297c7"
resource "cloudflare_record" "kazu634_mx1" {
allow_overwrite = null
comment = null
name = "kazu634.com"
priority = 58
proxied = false
tags = []
ttl = 1
type = "MX"
value = "route1.mx.cloudflare.net"
zone_id = "4f8b5b09ec9da6bff313cb0111b96603"
}
# __generated__ by Terraform from "4f8b5b09ec9da6bff313cb0111b96603/f6ca58b91089944c125e5c1832d9c76d"
resource "cloudflare_record" "kazu634_root" {
allow_overwrite = null
comment = null
name = "kazu634.com"
priority = null
proxied = true
tags = []
ttl = 1
type = "A"
value = "52.193.98.253"
zone_id = "4f8b5b09ec9da6bff313cb0111b96603"
}
# __generated__ by Terraform from "4f8b5b09ec9da6bff313cb0111b96603/61d73516794bfad77b721bf76a73ea75"
resource "cloudflare_record" "kazu634_ns1" {
allow_overwrite = null
comment = null
name = "mail"
priority = null
proxied = false
tags = []
ttl = 1
type = "NS"
value = "ns1.dns.ne.jp"
zone_id = "4f8b5b09ec9da6bff313cb0111b96603"
}
# __generated__ by Terraform from "4f8b5b09ec9da6bff313cb0111b96603/5d75d0b2e7662b810a7d6227e64808a6"
resource "cloudflare_record" "kazu634_ns2" {
allow_overwrite = null
comment = null
name = "mail"
priority = null
proxied = false
tags = []
ttl = 1
type = "NS"
value = "ns2.dns.ne.jp"
zone_id = "4f8b5b09ec9da6bff313cb0111b96603"
}
# __generated__ by Terraform from "4f8b5b09ec9da6bff313cb0111b96603/f446b8325af087d4e62c56fc7e866137"
resource "cloudflare_record" "kazu634_blog" {
allow_overwrite = null
comment = null
name = "blog"
priority = null
proxied = false
tags = []
ttl = 1
type = "A"
value = "52.193.98.253"
zone_id = "4f8b5b09ec9da6bff313cb0111b96603"
}
# __generated__ by Terraform from "4f8b5b09ec9da6bff313cb0111b96603/18eb0d476b1ae5e6de593d4b371545a8"
resource "cloudflare_record" "kazu634_social" {
allow_overwrite = null
comment = null
name = "social"
priority = null
proxied = true
tags = []
ttl = 1
type = "A"
value = "52.193.98.253"
zone_id = "4f8b5b09ec9da6bff313cb0111b96603"
}
# __generated__ by Terraform from "4f8b5b09ec9da6bff313cb0111b96603/7a50bebc46b3d7885637122981efa4eb"
resource "cloudflare_record" "kazu634_mx2" {
allow_overwrite = null
comment = null
name = "kazu634.com"
priority = 31
proxied = false
tags = []
ttl = 1
type = "MX"
value = "route2.mx.cloudflare.net"
zone_id = "4f8b5b09ec9da6bff313cb0111b96603"
}
# __generated__ by Terraform from "4f8b5b09ec9da6bff313cb0111b96603/3e7e3563bf0ea8e1b9c752c1e55441fe"
resource "cloudflare_record" "kazu634_mx3" {
allow_overwrite = null
comment = null
name = "kazu634.com"
priority = 65
proxied = false
tags = []
ttl = 1
type = "MX"
value = "route3.mx.cloudflare.net"
zone_id = "4f8b5b09ec9da6bff313cb0111b96603"
}
# __generated__ by Terraform from "4f8b5b09ec9da6bff313cb0111b96603/fbb5bfede54f4a71afdf59dbca6569c4"
resource "cloudflare_record" "kazu634_test" {
allow_overwrite = null
comment = null
name = "test"
priority = null
proxied = true
tags = []
ttl = 1
type = "A"
value = "52.193.98.253"
zone_id = "4f8b5b09ec9da6bff313cb0111b96603"
}
# __generated__ by Terraform from "4f8b5b09ec9da6bff313cb0111b96603/c7bfa5af599b0657eb7bbe585b359d5d"
resource "cloudflare_record" "kazu634_gitea" {
allow_overwrite = null
comment = null
name = "gitea"
priority = null
proxied = false
tags = []
ttl = 1
type = "A"
value = "52.193.98.253"
zone_id = "4f8b5b09ec9da6bff313cb0111b96603"
}
# __generated__ by Terraform from "4f8b5b09ec9da6bff313cb0111b96603/cebc1b785fb2e194da86fecea3295515"
resource "cloudflare_record" "kazu634_drone" {
allow_overwrite = null
comment = null
name = "drone"
priority = null
proxied = false
tags = []
ttl = 1
type = "A"
value = "52.193.98.253"
zone_id = "4f8b5b09ec9da6bff313cb0111b96603"
}
# __generated__ by Terraform from "4f8b5b09ec9da6bff313cb0111b96603/425d4e8deca13bba1701102379f19405"
resource "cloudflare_record" "kazu634_txt" {
allow_overwrite = null
comment = null
name = "kazu634.com"
priority = null
proxied = false
tags = []
ttl = 1
type = "TXT"
value = "v=spf1 include:_spf.mx.cloudflare.net ~all"
zone_id = "4f8b5b09ec9da6bff313cb0111b96603"
}

20
main.tf Normal file
View File

@ -0,0 +1,20 @@
terraform {
cloud {
organization = "kazu634"
workspaces {
name = "Cloudflare"
}
}
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4"
}
}
}
provider "cloudflare" {
api_token = var.api_token
}

19
variables.tf Normal file
View File

@ -0,0 +1,19 @@
variable "api_token" {
type = string
default = ""
}
variable "zone_id" {
type = string
default = ""
}
variable "account_id" {
type = string
default = ""
}
variable "domain" {
type = string
default = ""
}