0
0
llucycodes42
In the code, the data is set to the IBM App Domain Shared, and the name is set to "mybluemix.net". The domain_guid is set to the IBM App Domain Shared's domain_shared.id, and the space_guid is set to the IBM Space for myResourceName-space.id. The host is set to myHost and the path is set to "/app".
Shortcut: tf_ibm_app_domain_shared
data "ibm_app_domain_shared" "${myResourceName}" {
name = "mybluemix.net"
}
resource "ibm_app_route" "${myResourceName}_route" {
domain_guid = "${data.ibm_app_domain_shared.domain_shared.id}"
space_guid = "${data.ibm_space.myResourceName-space.id}"
host = "myHost"
path = "/app"
}