Skip to content

Commit 83e9278

Browse files
author
Nishu Goel
committed
Regenerate workflows with taxonomies
1 parent f8b7312 commit 83e9278

File tree

145 files changed

+6877
-1713
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+6877
-1713
lines changed

.speakeasy/gen.lock

Lines changed: 235 additions & 79 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
.PHONY: all docs
2-
all: docs speakeasy
2+
all: speakeasy docs
3+
4+
original.yaml:
5+
cp workflow.yaml original.yaml
6+
7+
original_modified.yaml: original.yaml overlay.yaml
8+
speakeasy overlay apply -s original.yaml -o overlay.yaml > original_modified.yaml
9+
10+
overlay.yaml:
11+
speakeasy overlay compare -s original.yaml -s original_modified.yaml > overlay.yaml
312

413
speakeasy:
5-
speakeasy generate sdk --lang terraform -o . -s workflow.yaml
14+
$(eval TMP := $(shell mktemp -d))
15+
# curl https://docs.api.epilot.io/workflows-definition.yaml > $(TMP)/openapi.yaml
16+
cp workflow.yaml $(TMP)/openapi.yaml
17+
speakeasy overlay apply -s $(TMP)/openapi.yaml -o overlay.yaml > $(TMP)/final.yaml
18+
speakeasy generate sdk --lang terraform -o . -s $(TMP)/final.yaml
619

720
docs:
821
go generate ./...

README.md

Lines changed: 55 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ TF_REATTACH_PROVIDERS=... terraform apply
5151

5252
<!-- End SDK <no value> -->
5353

54-
<!-- Start SDK Installation [installation] -->
55-
## SDK Installation
54+
<!-- Start Installation [installation] -->
55+
## Installation
5656

5757
To install this provider, copy and paste this code into your Terraform configuration. Then, run `terraform init`.
5858

@@ -61,7 +61,7 @@ terraform {
6161
required_providers {
6262
epilot-workflow = {
6363
source = "epilot-dev/epilot-workflow"
64-
version = "0.13.0"
64+
version = "0.15.2"
6565
}
6666
}
6767
}
@@ -70,19 +70,17 @@ provider "epilot-workflow" {
7070
# Configuration options
7171
}
7272
```
73-
<!-- End SDK Installation [installation] -->
73+
<!-- End Installation [installation] -->
7474

75-
<!-- Start SDK Example Usage [usage] -->
76-
## SDK Example Usage
75+
<!-- Start Testing the provider locally [usage] -->
76+
## Testing the provider locally
7777

78-
### Testing the provider locally
78+
#### Local Provider
7979

8080
Should you want to validate a change locally, the `--debug` flag allows you to execute the provider against a terraform instance locally.
8181

8282
This also allows for debuggers (e.g. delve) to be attached to the provider.
8383

84-
### Example
85-
8684
```sh
8785
go run main.go --debug
8886
# Copy the TF_REATTACH_PROVIDERS env var
@@ -91,13 +89,57 @@ cd examples/your-example
9189
TF_REATTACH_PROVIDERS=... terraform init
9290
TF_REATTACH_PROVIDERS=... terraform apply
9391
```
94-
<!-- End SDK Example Usage [usage] -->
9592

96-
<!-- Start Available Resources and Operations [operations] -->
97-
## Available Resources and Operations
93+
#### Compiled Provider
94+
95+
Terraform allows you to use local provider builds by setting a `dev_overrides` block in a configuration file called `.terraformrc`. This block overrides all other configured installation methods.
96+
97+
1. Execute `go build` to construct a binary called `terraform-provider-epilot-workflow`
98+
2. Ensure that the `.terraformrc` file is configured with a `dev_overrides` section such that your local copy of terraform can see the provider binary
99+
100+
Terraform searches for the `.terraformrc` file in your home directory and applies any configuration settings you set.
101+
102+
```
103+
provider_installation {
104+
105+
dev_overrides {
106+
"registry.terraform.io/epilot-dev/epilot-workflow" = "<PATH>"
107+
}
108+
109+
# For all other providers, install them directly from their origin provider
110+
# registries as normal. If you omit this, Terraform will _only_ use
111+
# the dev_overrides block, and so no other providers will be available.
112+
direct {}
113+
}
114+
```
115+
<!-- End Testing the provider locally [usage] -->
116+
117+
<!-- Start Available Resources and Data Sources [operations] -->
118+
## Available Resources and Data Sources
119+
120+
### Resources
121+
122+
* [epilot-workflow_closing_reason](docs/resources/closing_reason.md)
123+
* [epilot-workflow_workflow_definition](docs/resources/workflow_definition.md)
124+
### Data Sources
125+
126+
* [epilot-workflow_closing_reason](docs/data-sources/closing_reason.md)
127+
* [epilot-workflow_workflow_definition](docs/data-sources/workflow_definition.md)
128+
<!-- End Available Resources and Data Sources [operations] -->
129+
130+
<!-- Start Summary [summary] -->
131+
## Summary
132+
133+
Workflows Definitions: Service for Workflow Definitions for different processes inside of an Organization
134+
<!-- End Summary [summary] -->
98135

136+
<!-- Start Table of Contents [toc] -->
137+
## Table of Contents
99138

100-
<!-- End Available Resources and Operations [operations] -->
139+
* [Installation](#installation)
140+
* [Available Resources and Data Sources](#available-resources-and-data-sources)
141+
* [Testing the provider locally](#testing-the-provider-locally)
142+
<!-- End Table of Contents [toc] -->
101143

102144
<!-- Placeholder for Future Speakeasy SDK Sections -->
103145

docs/data-sources/closing_reason.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ ClosingReason DataSource
1414

1515
```terraform
1616
data "epilot-workflow_closing_reason" "my_closingreason" {
17-
reason_id = "-poOAPBa-jFZA_AWV3zN0"
1817
}
1918
```
2019

@@ -26,7 +25,5 @@ data "epilot-workflow_closing_reason" "my_closingreason" {
2625
- `creation_time` (String)
2726
- `id` (String) The ID of this resource.
2827
- `last_update_time` (String)
29-
- `status` (String) must be one of ["ACTIVE", "INACTIVE"]
28+
- `status` (String)
3029
- `title` (String)
31-
32-

0 commit comments

Comments
 (0)