Add image path output to ar module (#1552)

* Add image path output to ar module

* tfdoc
This commit is contained in:
Ludovico Magnocavallo
2023-07-31 11:34:01 +02:00
committed by GitHub
parent c82b229349
commit fe3e8a3941
2 changed files with 12 additions and 3 deletions

View File

@@ -101,7 +101,6 @@ module "registry-maven" {
# tftest modules=2 resources=2
```
<!-- BEGIN TFDOC -->
## Variables
| name | description | type | required | default |
@@ -121,6 +120,6 @@ module "registry-maven" {
| name | description | sensitive |
|---|---|:---:|
| [id](outputs.tf#L17) | Fully qualified repository id. | |
| [name](outputs.tf#L22) | Repository name. | |
| [image_path](outputs.tf#L22) | Repository path for images. | |
| [name](outputs.tf#L32) | Repository name. | |
<!-- END TFDOC -->

View File

@@ -19,6 +19,16 @@ output "id" {
value = google_artifact_registry_repository.registry.id
}
output "image_path" {
description = "Repository path for images."
value = join("/", [
"${var.location}-docker.pkg.dev",
var.project_id,
var.name
])
depends_on = [google_artifact_registry_repository.registry]
}
output "name" {
description = "Repository name."
value = google_artifact_registry_repository.registry.name