Skip to content

Commit

Permalink
chore: tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Noroth committed Jan 20, 2025
1 parent 6cfe87a commit 100a4d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions docs/resources/contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ resource "cosmo_contract" "test" {
source = var.source_graph_name
routing_url = var.routing_url
exclude_tags = var.exclude_tags
include_tags = var.include_tags
}
```

Expand Down
16 changes: 8 additions & 8 deletions examples/import/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,33 @@ resource "cosmo_namespace" "test" {

resource "cosmo_federated_graph" "test" {

name = "import-test"
name = "import-test"
namespace = cosmo_namespace.test.name

routing_url = "http://localhost:9999"
routing_url = "http://localhost:9999"
label_matchers = ["team=backend", "stage=import-test"]
depends_on = [cosmo_subgraph.test]
depends_on = [cosmo_subgraph.test]
}

// create each stages subgraph
resource "cosmo_subgraph" "test" {
name = "import-test-sg"
name = "import-test-sg"
schema = local.schema

namespace = cosmo_namespace.test.name
labels = {
"team" = "backend"
"team" = "backend"
"stage" = "import-test"
}

routing_url = "http://localhost:9997"
}

resource "cosmo_contract" "test" {
name = "import-test-contract"
name = "import-test-contract"
namespace = cosmo_namespace.test.name
source = cosmo_federated_graph.test.name
source = cosmo_federated_graph.test.name

routing_url = "http://localhost:9998"
routing_url = "http://localhost:9998"
exclude_tags = ["backend"]
}
4 changes: 2 additions & 2 deletions examples/resources/cosmo_contract/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ variable "source_graph_name" {
}

variable "exclude_tags" {
type = list(string)
type = list(string)
default = []
}

variable "include_tags" {
type = list(string)
type = list(string)
default = []
}

0 comments on commit 100a4d4

Please sign in to comment.