Skip to content

Commit ec9d405

Browse files
committed
docs: update app_autoscale and add certificate_issuer resource documentation
1 parent 89b92c7 commit ec9d405

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

docs/resources/app_autoscale.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ resource "tsuru_app_autoscale" "web" {
5757
- `cpu_average` (String) CPU average, for example: 20%, mean that we trigger autoscale when the average of CPU Usage of units is 20%.
5858
- `min_units` (Number) minimum number of units
5959
- `prometheus` (Block List) List of Prometheus autoscale rules (see [below for nested schema](#nestedblock--prometheus))
60+
- `scale_down` (Block List) Behavior of the auto scale down (see [below for nested schema](#nestedblock--scale_down))
6061
- `schedule` (Block List) List of schedules that determine scheduled up/downscales (see [below for nested schema](#nestedblock--schedule))
6162
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
6263

@@ -82,6 +83,16 @@ Read-Only:
8283
- `prometheus_address` (String) Custom Prometheus URL. If not specified, it will use the default Prometheus from the app's pool
8384

8485

86+
<a id="nestedblock--scale_down"></a>
87+
### Nested Schema for `scale_down`
88+
89+
Optional:
90+
91+
- `percentage` (Number) Percentage of units to scale down
92+
- `stabilization_window` (Number) Stabilization window in seconds
93+
- `units` (Number) Number of units to scale down
94+
95+
8596
<a id="nestedblock--schedule"></a>
8697
### Nested Schema for `schedule`
8798

docs/resources/certificate_issuer.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "tsuru_certificate_issuer Resource - terraform-provider-tsuru"
4+
subcategory: ""
5+
description: |-
6+
Set a issuer to generate certificates to a tsuru application
7+
---
8+
9+
# tsuru_certificate_issuer (Resource)
10+
11+
Set a issuer to generate certificates to a tsuru application
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Required
19+
20+
- `app` (String) Application name
21+
- `cname` (String) Application CNAME
22+
- `issuer` (String) Certificate Issuer
23+
24+
### Optional
25+
26+
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
27+
28+
### Read-Only
29+
30+
- `certificate` (List of String) Certificate Generated by Issuer, filled after the certificate is ready
31+
- `id` (String) The ID of this resource.
32+
- `ready` (Boolean) If the certificate is ready
33+
- `router` (List of String) Routers that are using the certificate
34+
35+
<a id="nestedblock--timeouts"></a>
36+
### Nested Schema for `timeouts`
37+
38+
Optional:
39+
40+
- `create` (String)
41+
- `delete` (String)
42+
- `update` (String)

0 commit comments

Comments
 (0)