Skip to content

Commit

Permalink
feat: adding a router for the network
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabNeu authored and sydrawat01 committed Oct 4, 2023
1 parent 5e87d6b commit 17d9fd9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gcp-tf-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
gcp_tf_validate:
runs-on: ubuntu-latest
environment: ${{ vars.ENVIRONMENT }}
name: Configure AWS `ghactions` IAM user
name: Validate GCP Infrastructure
steps:
- name: Checking out the terraform code
uses: actions/checkout@v3
Expand Down
9 changes: 9 additions & 0 deletions modules/vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ resource "google_compute_subnetwork" "public_subnet" {
region = var.region
}

# Router for the network
resource "google_compute_router" "csye7125_router" {

name = "csye7125-router"
network = google_compute_network.my_vpc.name

}


# Firewall rules
resource "google_compute_firewall" "ssh_rule" {
name = "ssh-firewall"
Expand Down

0 comments on commit 17d9fd9

Please sign in to comment.