diff --git a/modules/route53/main.tf b/modules/route53/main.tf new file mode 100644 index 0000000..47f613e --- /dev/null +++ b/modules/route53/main.tf @@ -0,0 +1,9 @@ +resource "aws_route53_zone" "primary" { + name = var.name + + //public 이면 vpc 불필요 + count = var.public ? 0 : 1 + vpc { + vpc_id = var.vpc_id + } +} diff --git a/modules/route53/outputs.tf b/modules/route53/outputs.tf new file mode 100644 index 0000000..0d67f61 --- /dev/null +++ b/modules/route53/outputs.tf @@ -0,0 +1,3 @@ +output "id" { + value = aws_route53_zone.primary.id +} \ No newline at end of file diff --git a/modules/route53/variables.tf b/modules/route53/variables.tf new file mode 100644 index 0000000..546fdcf --- /dev/null +++ b/modules/route53/variables.tf @@ -0,0 +1,9 @@ +variable "name" { + description = "route53 name" + type = string +} + +variable "name" { + description = "route53 name" + type = string +} \ No newline at end of file diff --git a/pord_dev_config/.terraform.lock.hcl b/pord_dev_config/.terraform.lock.hcl deleted file mode 100644 index e807511..0000000 --- a/pord_dev_config/.terraform.lock.hcl +++ /dev/null @@ -1,10 +0,0 @@ -# This file is maintained automatically by "terraform init". -# Manual edits may be lost in future updates. - -provider "registry.terraform.io/hashicorp/aws" { - version = "4.48.0" - constraints = "~> 4.0" - hashes = [ - "h1:8xLCA04IhQUzGI8/t3ySKNFMyjgGCWiXRUWhWEsYvew=", - ] -} diff --git a/pord_dev_config/main.tf b/pord_hq-ecr/main.tf similarity index 100% rename from pord_dev_config/main.tf rename to pord_hq-ecr/main.tf diff --git a/pord_dev_config/outputs.tf b/pord_hq-ecr/outputs.tf similarity index 100% rename from pord_dev_config/outputs.tf rename to pord_hq-ecr/outputs.tf diff --git a/pord_dev_config/terraform.tf b/pord_hq-ecr/terraform.tf similarity index 62% rename from pord_dev_config/terraform.tf rename to pord_hq-ecr/terraform.tf index 6682fe3..0011172 100644 --- a/pord_dev_config/terraform.tf +++ b/pord_hq-ecr/terraform.tf @@ -1,10 +1,10 @@ terraform { backend "remote"{ hostname = "app.terraform.io" - organization = "22shop" + organization = "icurfer" workspaces { - name = "tf-cloud-dev" + name = "tf-cloud-ecr" } } } \ No newline at end of file diff --git a/pord_dev_config/variables.tf b/pord_hq-ecr/variables.tf similarity index 100% rename from pord_dev_config/variables.tf rename to pord_hq-ecr/variables.tf diff --git a/prod-hq-efs/.terraform.lock.hcl b/prod-hq-efs/.terraform.lock.hcl deleted file mode 100644 index c68417c..0000000 --- a/prod-hq-efs/.terraform.lock.hcl +++ /dev/null @@ -1,10 +0,0 @@ -# This file is maintained automatically by "terraform init". -# Manual edits may be lost in future updates. - -provider "registry.terraform.io/hashicorp/aws" { - version = "3.76.0" - constraints = "~> 3.0" - hashes = [ - "h1:OzcRXMb2MU7LOheOcCX4rMVffltsLIX3ENs84UzB2Kw=", - ] -} diff --git a/prod-hq-efs/terraform.tf b/prod-hq-efs/terraform.tf index 06b7d67..31437e7 100644 --- a/prod-hq-efs/terraform.tf +++ b/prod-hq-efs/terraform.tf @@ -1,7 +1,7 @@ terraform { backend "remote"{ hostname = "app.terraform.io" - organization = "22shop" + organization = "icurfer" workspaces { name = "tf-22shop-hq-efs" diff --git a/prod-hq-eks/.terraform.lock.hcl b/prod-hq-eks/.terraform.lock.hcl deleted file mode 100644 index c68417c..0000000 --- a/prod-hq-eks/.terraform.lock.hcl +++ /dev/null @@ -1,10 +0,0 @@ -# This file is maintained automatically by "terraform init". -# Manual edits may be lost in future updates. - -provider "registry.terraform.io/hashicorp/aws" { - version = "3.76.0" - constraints = "~> 3.0" - hashes = [ - "h1:OzcRXMb2MU7LOheOcCX4rMVffltsLIX3ENs84UzB2Kw=", - ] -} diff --git a/prod-hq-eks/terraform.tf b/prod-hq-eks/terraform.tf index 807b8b4..d6c4a83 100644 --- a/prod-hq-eks/terraform.tf +++ b/prod-hq-eks/terraform.tf @@ -1,7 +1,7 @@ terraform { backend "remote"{ hostname = "app.terraform.io" - organization = "22shop" + organization = "icurfer" workspaces { name = "tf-cloud-eks" diff --git a/prod-hq-idc-network/.terraform.lock.hcl b/prod-hq-idc-network/.terraform.lock.hcl deleted file mode 100644 index c68417c..0000000 --- a/prod-hq-idc-network/.terraform.lock.hcl +++ /dev/null @@ -1,10 +0,0 @@ -# This file is maintained automatically by "terraform init". -# Manual edits may be lost in future updates. - -provider "registry.terraform.io/hashicorp/aws" { - version = "3.76.0" - constraints = "~> 3.0" - hashes = [ - "h1:OzcRXMb2MU7LOheOcCX4rMVffltsLIX3ENs84UzB2Kw=", - ] -} diff --git a/prod-hq-network/.terraform.lock.hcl b/prod-hq-network/.terraform.lock.hcl index 834290a..bb18485 100644 --- a/prod-hq-network/.terraform.lock.hcl +++ b/prod-hq-network/.terraform.lock.hcl @@ -2,9 +2,23 @@ # Manual edits may be lost in future updates. provider "registry.terraform.io/hashicorp/aws" { - version = "2.70.1" + version = "2.70.4" constraints = "~> 2.0" hashes = [ - "h1:SQR8egOmFbwBHOSMzUYg/Mt4e0LsQe91ma9I2Ug3lmY=", + "h1:0ALZ1dGL41uYi6Ooc0mT52FAcYMEvozpFNx8AQKvatY=", + "zh:45f528103c5580623b15e7ac3986b72baa5d33cabc66c902594d666c7607a8f2", + "zh:538793ad294171370cc0c280c98cb5c8eb77669d0917c2ab727090016ec2626e", + "zh:631d5aea6ec7b13d8973f13fc70dc36ecc5e5614793c5141ccd254773bc4ec36", + "zh:7861c5e12c322717ff9684ac658be590d12906a9549204b6337f3f8d55bf0640", + "zh:8adfe014d0a0552a9a6b358cc0d7e3d0c660bc15aa5524e771525b0e5d14b20f", + "zh:9d81089842c0990d410bffc5702dec719145951c3f5cbc85c3bf8968985d50cc", + "zh:a4b0922e0fddccbb84958d4909896e8009c57885a41cc2e1c37dcdc56e2da796", + "zh:a6dcd0292e807d8d5b8a922d2e0cc3c6949461e18603cb48005c967329abe574", + "zh:ae07e0dae4e700c1f6623bd0b66ab4153d0b498ffd5f6681117101d2020815bc", + "zh:bd07ba17501b8b57d4455329770f4f520e709d12f8b0c364821f39d1b2df1a89", + "zh:ddbf1a0b63ac84462da002b44b249f86180804670f1070109785d00a19f88e16", + "zh:e2291e9efbd0100c555d3bae8f2b2af4d416f80105c250747cb5fd8f0b17062f", + "zh:e5d8e0ad489547118fd76f300d1cb6dd516997cf919dc0bbaedaacb5c91e697a", + "zh:eae90e616cec391546bf4ecf294e8a3ae56ce7c90ac0e1d45ebf2907957b9f16", ] } diff --git a/prod-hq-network/terraform.tf b/prod-hq-network/terraform.tf index b91ab8c..2ded444 100644 --- a/prod-hq-network/terraform.tf +++ b/prod-hq-network/terraform.tf @@ -1,7 +1,7 @@ terraform { backend "remote"{ hostname = "app.terraform.io" - organization = "22shop" + organization = "icurfer" workspaces { name = "tf-22shop-network" diff --git a/01-start/.terraform.lock.hcl b/test/.terraform.lock.hcl similarity index 100% rename from 01-start/.terraform.lock.hcl rename to test/.terraform.lock.hcl diff --git a/01-start/main.tf b/test/main.tf similarity index 100% rename from 01-start/main.tf rename to test/main.tf