Add image path output to ar module (#1552)
* Add image path output to ar module * tfdoc
This commit is contained in:
committed by
GitHub
parent
c82b229349
commit
fe3e8a3941
@@ -101,7 +101,6 @@ module "registry-maven" {
|
|||||||
# tftest modules=2 resources=2
|
# tftest modules=2 resources=2
|
||||||
```
|
```
|
||||||
<!-- BEGIN TFDOC -->
|
<!-- BEGIN TFDOC -->
|
||||||
|
|
||||||
## Variables
|
## Variables
|
||||||
|
|
||||||
| name | description | type | required | default |
|
| name | description | type | required | default |
|
||||||
@@ -121,6 +120,6 @@ module "registry-maven" {
|
|||||||
| name | description | sensitive |
|
| name | description | sensitive |
|
||||||
|---|---|:---:|
|
|---|---|:---:|
|
||||||
| [id](outputs.tf#L17) | Fully qualified repository id. | |
|
| [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 -->
|
<!-- END TFDOC -->
|
||||||
|
|||||||
@@ -19,6 +19,16 @@ output "id" {
|
|||||||
value = google_artifact_registry_repository.registry.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" {
|
output "name" {
|
||||||
description = "Repository name."
|
description = "Repository name."
|
||||||
value = google_artifact_registry_repository.registry.name
|
value = google_artifact_registry_repository.registry.name
|
||||||
|
|||||||
Reference in New Issue
Block a user