Skip to content

Commit 016357d

Browse files
authored
Terraform feature support (#251)
1 parent 5d392e7 commit 016357d

Some content is hidden

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

67 files changed

+5797
-24
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@
1616

1717
/spec.log
1818
/spec/dummy/.controlplane/controlplane*-tmp-*.yml
19+
20+
# Generated configs
21+
/terraform/
22+
/.controlplane/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ development purposes.
479479

480480
## Scheduled Jobs
481481

482-
Control Plane supports scheduled jobs via [cron workloads](https://docs.controlplane.com/reference/workload/types#cron).
482+
Control Plane supports scheduled jobs via [cron workloads](https://shakadocs.controlplane.com/reference/workload/types#cron).
483483

484484
Here's a partial example of a template for a cron workload, using the app image:
485485

docs/commands.md

+16
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,22 @@ cpflow run -a $APP_NAME --entrypoint /app/alternative-entrypoint.sh -- rails db:
444444
cpflow setup-app -a $APP_NAME
445445
```
446446
447+
### `terraform generate`
448+
449+
- Generates terraform configuration files based on `controlplane.yml` and `templates/` config
450+
451+
```sh
452+
cpflow terraform generate
453+
```
454+
455+
### `terraform import`
456+
457+
- Imports terraform resources from the generated configuration files
458+
459+
```sh
460+
cpflow terraform import
461+
```
462+
447463
### `version`
448464
449465
- Displays the current version of the CLI

0 commit comments

Comments
 (0)