Skip to content

Commit

Permalink
chore: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasZeissner committed Sep 16, 2024
1 parent 46e18c3 commit 9ba045d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/provider/modules.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module "cosmo-federated-graph" {
federated_graph = {
name = "${local.prefix}-federated-graph"
routing_url = "http://localhost:3000"
readme = "This is a test federated graph"
label_matchers = [
"team=backend",
"stage=dev"
Expand All @@ -23,6 +24,7 @@ module "cosmo-federated-graph" {
subgraphs = {
"subgraph-1" = {
name = "${local.prefix}-subgraph-1"
readme = "This is a test subgraph"
routing_url = "http://example.com/routing"
schema = "type Query { hello: String }"
labels = {
Expand Down
1 change: 1 addition & 0 deletions modules/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.terraform.lock.hcl
1 change: 1 addition & 0 deletions modules/cosmo-federated-graph/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ resource "cosmo_federated_graph" "federated_graph" {
routing_url = var.federated_graph.routing_url
namespace = cosmo_namespace.namespace.name
label_matchers = var.federated_graph.label_matchers
readme = var.federated_graph.readme
depends_on = [cosmo_subgraph.subgraph]
}

Expand Down
1 change: 1 addition & 0 deletions modules/cosmo-federated-graph/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ variable "federated_graph" {
name = string
routing_url = string
label_matchers = list(string)
readme = string
})
description = "The parameters of the federated graph"
}
Expand Down

0 comments on commit 9ba045d

Please sign in to comment.