Skip to content

Commit 6e4fb28

Browse files
authored
Merge pull request #105 from pluralsh/gcp-plural-network
feat: Add GCP Plural network context
2 parents 1a1fa7d + d68f859 commit 6e4fb28

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

terraform/core-infra/aws/context.tf

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,14 @@ resource "plural_service_context" "mgmt" {
1515
subnet_ids = one(data.aws_eks_cluster.mgmt.vpc_config).subnet_ids
1616
vpc_cidr = data.aws_vpc.mgmt.cidr_block
1717
})
18-
}
18+
}
19+
20+
resource "plural_service_context" "plrl-vpc" {
21+
name = "plrl/vpc/plural"
22+
23+
configuration = jsonencode({
24+
vpc_id = one(data.aws_eks_cluster.mgmt.vpc_config).vpc_id
25+
subnet_ids = one(data.aws_eks_cluster.mgmt.vpc_config).subnet_ids
26+
vpc_cidr = data.aws_vpc.mgmt.cidr_block
27+
})
28+
}

terraform/core-infra/gcp/context.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,13 @@ resource "plural_service_context" "mgmt" {
2626
cidr = data.google_compute_subnetwork.subnetwork.ip_cidr_range
2727
project_id = var.project
2828
})
29+
}
30+
31+
resource "plural_service_context" "plural-vpc" {
32+
name = "plrl/vpc/plural"
33+
34+
configuration = jsonencode({
35+
network = data.google_compute_network.network.name
36+
subnetwork = data.google_container_cluster.mgmt.subnetwork
37+
})
2938
}

0 commit comments

Comments
 (0)