Skip to content

Commit 3c8967d

Browse files
author
Nishu Goel
committed
Suppoort flows in blueprints
1 parent 55be6c4 commit 3c8967d

File tree

102 files changed

+12585
-4584
lines changed

Some content is hidden

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

102 files changed

+12585
-4584
lines changed

.speakeasy/gen.lock

Lines changed: 265 additions & 736 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 48 additions & 16 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.16.0"
64+
version = "0.17.0"
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,45 @@ 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
98121

122+
* [epilot-workflow_closing_reason](docs/resources/closing_reason.md)
123+
* [epilot-workflow_flow_template](docs/resources/flow_template.md)
124+
* [epilot-workflow_workflow_definition](docs/resources/workflow_definition.md)
125+
### Data Sources
99126

100-
<!-- End Available Resources and Operations [operations] -->
127+
* [epilot-workflow_closing_reason](docs/data-sources/closing_reason.md)
128+
* [epilot-workflow_flow_template](docs/data-sources/flow_template.md)
129+
* [epilot-workflow_workflow_definition](docs/data-sources/workflow_definition.md)
130+
<!-- End Available Resources and Data Sources [operations] -->
101131

102132
<!-- Start Summary [summary] -->
103133
## Summary
@@ -107,10 +137,12 @@ Workflows Definitions: Service for Workflow Definitions for different processes
107137

108138
<!-- Start Table of Contents [toc] -->
109139
## Table of Contents
140+
<!-- $toc-max-depth=2 -->
141+
* [epilot-workflow](#epilot-workflow)
142+
* [Installation](#installation)
143+
* [Testing the provider locally](#testing-the-provider-locally)
144+
* [Available Resources and Data Sources](#available-resources-and-data-sources)
110145

111-
* [Installation](#installation)
112-
* [Available Resources and Data Sources](#available-resources-and-data-sources)
113-
* [Testing the provider locally](#testing-the-provider-locally)
114146
<!-- End Table of Contents [toc] -->
115147

116148
<!-- Placeholder for Future Speakeasy SDK Sections -->

docs/data-sources/closing_reason.md

Lines changed: 1 addition & 2 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 = "x739cew"
1817
}
1918
```
2019

@@ -26,5 +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)

0 commit comments

Comments
 (0)