Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.93 KB

File metadata and controls

24 lines (19 loc) · 1.93 KB

cloudfoundry_route (Resource)

Provides a Cloud Foundry resource for managing Cloud Foundry application routes.

cloudfoundry/cloudfoundry cloudfoundry-community/cloudfoundry

resource "cloudfoundry_route" "bruh" {
space = "795a961c-6360-479a-9666-fff9cb906aad"
domain = "440e24e5-ee11-41d9-a996-2ed0a1e2deea"

#Optional

host = "myapp"
path = "/cart"
destinations = [
{
app_id = "24a711f2-148b-4d48-b37a-90a66d6e842f"

},
{
app_id = "15a74002-cf3a-4bf2-b76f-fe96867c46ee"
app_process_type = "web"
port = 36001
},
]
}

resource "cloudfoundry_route" "bruh" {
space = "795a961c-6360-479a-9666-fff9cb906aad"
domain = "440e24e5-ee11-41d9-a996-2ed0a1e2deea"

#Optional

hostname = "myapp"
path = "/cart"
target = [
{
app = "24a711f2-148b-4d48-b37a-90a66d6e842f"
},
{
app = "15a74002-cf3a-4bf2-b76f-fe96867c46ee"
port = 36001
},
]
}

Differences

Note

🔵 Required 🟢 Optional 🟠 Computed 🔴 Not present

Attribute name Cloud Foundry Provider Community Cloud Foundry Provider (old) Description
hostname 🔴 🟢 hostname has been changed to host to maintain conformity with V3 API.
host 🟢 🔴 -
endpoint 🔴 🟠 endpoint has been changed to url to maintain conformity with V3 API.
url 🟠 🔴 -
target 🔴 🟢 target has been changed to destinations to maintain conformity with V3 API.
destinations 🟢 🔴 Supports additional attributes such as app_process_type,protocol and weight.
labels 🟢 🔴 -
annotations 🟢 🔴 -
protocol 🟠 🔴 -