Skip to content

Commit c45b584

Browse files
updating generated docs
1 parent 9422271 commit c45b584

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

docs/resources/app.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ resource "cloudfoundry_app" "http-bin-server" {
8181
org_name = "PerformanceTeamBLR"
8282
docker_image = "kennethreitz/httpbin"
8383
strategy = "blue-green"
84+
app_deployed_running_timeout = 2
85+
app_deployed_running_check_interval = 10
8486
labels = {
8587
"app" = "backend",
8688
"env" = "production"
@@ -134,6 +136,8 @@ resource "cloudfoundry_app" "http-bin-sidecar" {
134136
### Optional
135137

136138
- `annotations` (Map of String) The annotations associated with Cloud Foundry resources. Add as described [here](https://docs.cloudfoundry.org/adminguide/metadata.html#-view-metadata-for-an-object).
139+
- `app_deployed_running_check_interval` (Number) The interval in seconds between checks to see if the app is running after updating deployment with 'blue-green' strategy. The default is 5 seconds. Min value is 1 second, max value is 30 seconds. Used only when strategy is set to 'blue-green'.
140+
- `app_deployed_running_timeout` (Number) Timeout in minutes to wait for app to be running after updating deployment with 'blue-green' strategy. The default is 5 minutes. Min value is 1 minute. Max value is 59 minutes. Used only when strategy is set to 'blue-green'.
137141
- `buildpacks` (List of String) Multiple buildpacks used to stage the application.
138142
- `command` (String) A custom start command for the application. This overrides the start command provided by the buildpack.
139143
- `disk_quota` (String) The disk space to be allocated for each application instance.
@@ -164,8 +168,6 @@ resource "cloudfoundry_app" "http-bin-sidecar" {
164168
- `stack` (String) The base operating system and file system that your application will execute in. Please refer to the [docs](https://v3-apidocs.cloudfoundry.org/version/3.155.0/index.html#stacks) for more information
165169
- `stopped` (Boolean) Whether the application is started or stopped after creation. By default, this value is false, meaning the application will be started automatically after creation.
166170
- `strategy` (String) The deployment strategy to use when deploying the application. Valid values are 'none', 'rolling', and 'blue-green', defaults to 'none'.
167-
- `app_deployed_running_timeout` (Number) Timeout in minutes to wait for app to be running after updating deployment with 'blue-green' strategy. The default is 5 minutes. Minimal value is 1 minute. Used only when strategy is set to 'blue-green'. Monitoring is enabled when one of `app_deployed_running_timeout` or `app_deployed_running_check_interval` is set.
168-
- `app_deployed_running_check_interval` (Number) The interval in seconds between checks to see if the app is running after updating deployment with 'blue-green' strategy. Value should be between 1 and 30 seconds. The default is 5 seconds. Used only when strategy is set to 'blue-green'. Monitoring is enabled when one of `app_deployed_running_timeout` or `app_deployed_running_check_interval` is set.
169171
- `timeout` (Number) Time in seconds at which the health-check will report failure.
170172

171173
### Read-Only

examples/resources/cloudfoundry_app/resource.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ EOT
6262
}
6363

6464
resource "cloudfoundry_app" "http-bin-server" {
65-
name = "tf-test-do-not-delete-http-bin"
66-
space_name = "tf-space-1"
67-
org_name = "PerformanceTeamBLR"
68-
docker_image = "kennethreitz/httpbin"
69-
strategy = "blue-green"
70-
app_deployed_running_timeout = 2
65+
name = "tf-test-do-not-delete-http-bin"
66+
space_name = "tf-space-1"
67+
org_name = "PerformanceTeamBLR"
68+
docker_image = "kennethreitz/httpbin"
69+
strategy = "blue-green"
70+
app_deployed_running_timeout = 2
7171
app_deployed_running_check_interval = 10
7272
labels = {
7373
"app" = "backend",

0 commit comments

Comments
 (0)