Skip to content

Commit

Permalink
output more cloudrun service properties (#424)
Browse files Browse the repository at this point in the history
output uri such that it can be referenced 
same for locations

---------

Signed-off-by: Kenny Leung <kleung@chainguard.dev>
  • Loading branch information
k4leung4 committed Jul 1, 2024
1 parent 6fe11b6 commit 2738731
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/regional-go-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,7 @@ No requirements.

| Name | Description |
|------|-------------|
| <a name="output_locations"></a> [locations](#output\_locations) | n/a |
| <a name="output_names"></a> [names](#output\_names) | n/a |
| <a name="output_uris"></a> [uris](#output\_uris) | n/a |
<!-- END_TF_DOCS -->
8 changes: 8 additions & 0 deletions modules/regional-go-service/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
output "names" {
value = module.this.names
}

output "locations" {
value = module.this.locations
}

output "uris" {
value = module.this.uris
}
2 changes: 2 additions & 0 deletions modules/regional-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,7 @@ No requirements.

| Name | Description |
|------|-------------|
| <a name="output_locations"></a> [locations](#output\_locations) | n/a |
| <a name="output_names"></a> [names](#output\_names) | n/a |
| <a name="output_uris"></a> [uris](#output\_uris) | n/a |
<!-- END_TF_DOCS -->
12 changes: 12 additions & 0 deletions modules/regional-service/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,15 @@ output "names" {
for k, v in google_cloud_run_v2_service.this : k => v.name
}
}

output "locations" {
value = {
for k, v in google_cloud_run_v2_service.this : k => v.location
}
}

output "uris" {
value = {
for k, v in google_cloud_run_v2_service.this : k => v.uri
}
}

0 comments on commit 2738731

Please sign in to comment.