Skip to content

Commit aa785a9

Browse files
committed
Remove resources
1 parent 3f2cc4f commit aa785a9

27 files changed

Lines changed: 3 additions & 616 deletions

File tree

main.tf

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,25 @@ variable "cloudflare_email_address" { type = string }
1313
variable "aws_idp_run_role_arn" { type = string }
1414
variable "aws_idp_client_id" { type = string }
1515

16-
variable "default_db_username" { type = string }
17-
1816
module "cloudflare" {
1917
source = "./server/cloudflare"
2018

2119
cloudflare_account_id = var.cloudflare_account_id
2220
cloudflare_email_address = var.cloudflare_email_address
23-
mudev_aws_1_instance_ipv4 = module.mudev_aws_1.mudev_aws_1_public_ip
2421
mudev_vultr_1_instance_ipv4 = module.mudev_vultr_1.mudev_vultr_1_public_ip
2522
}
2623

2724
module "mudev_aws_1" {
2825
source = "./server/mudev-aws-1/infrastructures"
2926

3027
aws_region = "ap-northeast-2"
31-
aws_regions = [
32-
"ap-northeast-2a",
33-
"ap-northeast-2b",
34-
"ap-northeast-2c",
35-
"ap-northeast-2d",
36-
]
37-
aws_default_availability_zone = "ap-northeast-2c"
3828

3929
tfc_organization_name = var.tfc_organization_name
4030
tfc_project_name = var.tfc_project_name
4131
tfc_workspace_name = var.tfc_workspace_name
4232

4333
aws_idp_run_role_arn = var.aws_idp_run_role_arn
4434
aws_idp_client_id = var.aws_idp_client_id
45-
46-
default_db_username = var.default_db_username
4735
}
4836

4937
module "mudev_vultr_1" {
@@ -52,10 +40,6 @@ module "mudev_vultr_1" {
5240
vultr_api_key = var.vultr_api_key
5341
}
5442

55-
output "mudev_aws_1_public_ip" {
56-
value = module.mudev_aws_1.mudev_aws_1_public_ip
57-
}
58-
5943
output "mudev_vultr_1_public_ip" {
6044
value = module.mudev_vultr_1.mudev_vultr_1_public_ip
6145
}

server/cloudflare/domains/definitions.tf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,18 @@ terraform {
1111
}
1212

1313
variable "cloudflare_account_id" { type = string }
14-
variable "mudev_aws_1_instance_ipv4" { type = string }
1514
variable "mudev_vultr_1_instance_ipv4" { type = string }
1615

1716
module "mudev_cc" {
1817
source = "./mudev.cc"
1918

2019
cloudflare_account_id = var.cloudflare_account_id
21-
mudev_aws_1_instance_ipv4 = var.mudev_aws_1_instance_ipv4
2220
mudev_vultr_1_instance_ipv4 = var.mudev_vultr_1_instance_ipv4
2321
}
2422

2523
module "protoco_cc" {
2624
source = "./protoco.cc"
2725

2826
cloudflare_account_id = var.cloudflare_account_id
29-
mudev_aws_1_instance_ipv4 = var.mudev_aws_1_instance_ipv4
3027
mudev_vultr_1_instance_ipv4 = var.mudev_vultr_1_instance_ipv4
3128
}

server/cloudflare/domains/mudev.cc/main.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ terraform {
1111
}
1212

1313
variable "cloudflare_account_id" { type = string }
14-
variable "mudev_aws_1_instance_ipv4" { type = string }
1514
variable "mudev_vultr_1_instance_ipv4" { type = string }
1615

1716
module "records" {
1817
source = "./records"
1918

2019
cloudflare_zone_id = cloudflare_zone.mudev_cc.id
21-
mudev_aws_1_instance_ipv4 = var.mudev_aws_1_instance_ipv4
2220
mudev_vultr_1_instance_ipv4 = var.mudev_vultr_1_instance_ipv4
2321
}
2422

server/cloudflare/domains/mudev.cc/records/a.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "cloudflare_record" "mudev_cc_record_a_aws_origin" {
33
proxied = true
44
ttl = 1
55
type = "A"
6-
content = var.mudev_aws_1_instance_ipv4
6+
content = "0.0.0.0"
77
zone_id = var.cloudflare_zone_id
88
}
99

@@ -12,7 +12,7 @@ resource "cloudflare_record" "mudev_cc_record_a_api" {
1212
proxied = true
1313
ttl = 1
1414
type = "A"
15-
content = var.mudev_aws_1_instance_ipv4
15+
content = "0.0.0.0"
1616
zone_id = var.cloudflare_zone_id
1717
}
1818

server/cloudflare/domains/mudev.cc/records/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ terraform {
1111
}
1212

1313
variable "cloudflare_zone_id" { type = string }
14-
variable "mudev_aws_1_instance_ipv4" { type = string }
1514
variable "mudev_vultr_1_instance_ipv4" { type = string }

server/cloudflare/domains/protoco.cc/main.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ terraform {
1111
}
1212

1313
variable "cloudflare_account_id" { type = string }
14-
variable "mudev_aws_1_instance_ipv4" { type = string }
1514
variable "mudev_vultr_1_instance_ipv4" { type = string }
1615

1716
module "records" {
1817
source = "./records"
1918

2019
cloudflare_zone_id = cloudflare_zone.protoco_cc.id
21-
mudev_aws_1_instance_ipv4 = var.mudev_aws_1_instance_ipv4
2220
mudev_vultr_1_instance_ipv4 = var.mudev_vultr_1_instance_ipv4
2321
}
2422

server/cloudflare/domains/protoco.cc/records/a.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "cloudflare_record" "protoco_cc_record_api" {
33
proxied = true
44
ttl = 1
55
type = "A"
6-
content = var.mudev_aws_1_instance_ipv4
6+
content = "0.0.0.0"
77
zone_id = var.cloudflare_zone_id
88
}
99

server/cloudflare/domains/protoco.cc/records/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ terraform {
1111
}
1212

1313
variable "cloudflare_zone_id" { type = string }
14-
variable "mudev_aws_1_instance_ipv4" { type = string }
1514
variable "mudev_vultr_1_instance_ipv4" { type = string }

server/cloudflare/main.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ terraform {
1212

1313
variable "cloudflare_account_id" { type = string }
1414
variable "cloudflare_email_address" { type = string }
15-
variable "mudev_aws_1_instance_ipv4" { type = string }
1615
variable "mudev_vultr_1_instance_ipv4" { type = string }
1716

1817
module "domains" {
1918
source = "./domains"
2019

2120
cloudflare_account_id = var.cloudflare_account_id
22-
mudev_aws_1_instance_ipv4 = var.mudev_aws_1_instance_ipv4
2321
mudev_vultr_1_instance_ipv4 = var.mudev_vultr_1_instance_ipv4
2422
}

server/mudev-aws-1/infrastructures/kms.tf

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)