Skip to content

Commit

Permalink
Generate the docs properly
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjohansson committed Oct 1, 2024
1 parent b797249 commit 35eee25
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 50 deletions.
16 changes: 13 additions & 3 deletions docs/data-sources/teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ Retrieves all teams
## Example Usage

```terraform
terraform {
required_providers {
ee-platform = {
source = "springernature/ee-platform"
}
}
}
provider "ee-platform" {
platform_api = "https://ee-platform-dev.springernature.app"
}
data "ee-platform_teams" "all_teams" {}
output "teams" {
Expand All @@ -24,7 +36,7 @@ output "teams" {
resource "local_file" "foo" {
for_each = data.ee-platform_teams.all_teams.teams
filename = "/tmp/test/${each.key}"
content = "name = ${each.value.name}, department = ${each.value.department}"
content = "name = ${each.value.name}, id = ${each.value.id}"
}
```

Expand All @@ -40,11 +52,9 @@ resource "local_file" "foo" {

Required:

- `department` (String) SN department the team is part of
- `id` (String) Unique identifier of the team
- `name` (String) Team name

Optional:

- `domain` (String) SN Digital domain the team is part of
- `snpaas_org` (String) SNPaaS Cloud Foundry organization that the team deploys to
8 changes: 7 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ terraform {
}
}
provider "ee-platform" {}
provider "ee-platform" {
platform_api = "https://ee-platform-dev.springernature.app"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `platform_api` (String)
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

provider "ee-platform" {
platform_api = "https://ee-platform.springernature.app:8080"
platform_api = "https://ee-platform-dev.springernature.app"
}

data "ee-platform_teams" "all_teams" {}
Expand All @@ -22,4 +22,4 @@ resource "local_file" "foo" {
for_each = data.ee-platform_teams.all_teams.teams
filename = "/tmp/test/${each.key}"
content = "name = ${each.value.name}, id = ${each.value.id}"
}
}
43 changes: 0 additions & 43 deletions examples/provider-install-verification/.terraform.lock.hcl

This file was deleted.

4 changes: 3 additions & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ terraform {
}
}

provider "ee-platform" {}
provider "ee-platform" {
platform_api = "https://ee-platform-dev.springernature.app"
}
3 changes: 3 additions & 0 deletions internal/client/platform.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package client

import (
Expand Down

0 comments on commit 35eee25

Please sign in to comment.