Skip to content

Commit e74afe4

Browse files
feat: added project_location as output (#33)
1 parent db4c524 commit e74afe4

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ statement instead the previous block.
158158
| Name | Description |
159159
|------|-------------|
160160
| <a name="output_project_id"></a> [project\_id](#output\_project\_id) | ID of the created project |
161+
| <a name="output_project_location"></a> [project\_location](#output\_project\_location) | location of the created project |
161162
| <a name="output_project_url"></a> [project\_url](#output\_project\_url) | URL of the created project |
162163
| <a name="output_resource_group_id"></a> [resource\_group\_id](#output\_resource\_group\_id) | ID of the resource group used to provision the resources |
163164
| <a name="output_watson_governance_crn"></a> [watson\_governance\_crn](#output\_watson\_governance\_crn) | CRN of the Watson Governance instance |

configure_project/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ output "project_id" {
22
value = trimprefix(resource.restapi_object.configure_project[0].id, "/v2/projects/")
33
description = "ID of the created project"
44
}
5+
6+
output "project_location" {
7+
value = resource.restapi_object.configure_project[0].id
8+
description = "Location of the created project"
9+
}

ibm_catalog.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,10 @@
336336
"key": "project_id",
337337
"description": "ID of the Watson project to create"
338338
},
339+
{
340+
"key": "project_location",
341+
"description": "Location of the Watson project to create"
342+
},
339343
{
340344
"key": "project_url",
341345
"description": "URL of the Watson project to create"

outputs.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ output "project_id" {
133133
description = "ID of the created project"
134134
}
135135

136+
output "project_location" {
137+
value = module.configure_project.project_location
138+
description = "location of the created project"
139+
}
140+
141+
136142
output "project_url" {
137143
value = "https://dataplatform.cloud.ibm.com/projects/${module.configure_project.project_id}?context=wx&sync_account_id=${ibm_resource_instance.machine_learning_instance.account_id}"
138144
description = "URL of the created project"

0 commit comments

Comments
 (0)