Skip to content

Commit 893d7e3

Browse files
Merge pull request #12 from code-review-platform-flow/FLOW-183
feat: tt 파일을 gcp에 맞게 재설정
2 parents d9933f2 + 66cfd6e commit 893d7e3

File tree

4 files changed

+23
-22
lines changed

4 files changed

+23
-22
lines changed

.github/workflows/argocd.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
- name: Set up Google Cloud SDK
2323
uses: google-github-actions/[email protected]
2424
with:
25-
project_id: code-review-platform-flow
25+
project_id: gcuflow
2626
install_components: kubectl
2727

2828
- name: Configure kubectl
2929
run: |
30-
gcloud container clusters get-credentials primary --zone asia-northeast3-a --project code-review-platform-flow
30+
gcloud container clusters get-credentials primary --zone asia-northeast3-a --project gcuflow
3131
3232
- name: Install Helm
3333
run: |

firewalls.tf

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
# Google Compute Firewall 설정
22
resource "google_compute_firewall" "allow-ssh" {
3-
name = var.firewall_name
3+
name = var.ssh_firewall_name
44
network = google_compute_network.main.name
55

66
allow {
77
protocol = "tcp"
88
ports = ["22"]
99
}
1010

11+
source_ranges = var.firewall_source_ranges
12+
}
13+
14+
resource "google_compute_firewall" "allow-http-https" {
15+
name = var.http_https_firewall_name
16+
network = google_compute_network.main.name
17+
18+
allow {
19+
protocol = "tcp"
20+
ports = ["80", "443"]
21+
}
22+
1123
source_ranges = var.firewall_source_ranges
1224
}

provider.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ terraform {
1212
# Terraform 상태를 저장할 GCS 백엔드 설정
1313
backend "gcs" {
1414
# 상태 파일을 저장할 GCS 버킷 이름을 지정합니다.
15-
bucket = "flow-tf-state-staging"
15+
bucket = "flow-terraform-state-staging"
1616

1717
# 상태 파일 경로의 접두사를 지정합니다.
1818
prefix = "terraform/state"

variables.tf

+7-18
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
variable "gcp_credentials_file" {
2-
description = "Path to the GCP credentials JSON file"
3-
type = string
4-
}
5-
61
variable "vpc_network_name" {
72
description = "VPC 네트워크 이름"
83
type = string
@@ -132,17 +127,6 @@ variable "gcp_region" {
132127
type = string
133128
}
134129

135-
# Terraform GCS 백엔드 변수
136-
variable "tf_state_bucket" {
137-
description = "Terraform 상태 파일을 저장할 GCS 버킷 이름"
138-
type = string
139-
}
140-
141-
variable "tf_state_prefix" {
142-
description = "Terraform 상태 파일 경로의 접두사"
143-
type = string
144-
}
145-
146130
# Kubernetes 클러스터 서비스 계정 변수
147131
variable "kubernetes_service_account_id" {
148132
description = "Kubernetes 클러스터 서비스 계정 ID"
@@ -238,8 +222,13 @@ variable "master_ipv4_cidr_block" {
238222
}
239223

240224
# Google Compute Firewall 변수
241-
variable "firewall_name" {
242-
description = "방화벽 규칙 이름"
225+
variable "ssh_firewall_name" {
226+
description = "ssh 방화벽 규칙 이름"
227+
type = string
228+
}
229+
230+
variable "http_https_firewall_name" {
231+
description = "http https 방화벽 규칙 이름"
243232
type = string
244233
}
245234

0 commit comments

Comments
 (0)