Skip to content

Commit

Permalink
fix: Add perimeter info to regular perimeter outputs (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkrose authored May 19, 2021
1 parent c70d811 commit 1787b21
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/regular_service_perimeter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ module "regular_service_perimeter_1" {

| Name | Description |
|------|-------------|
| perimeter\_name | The perimeter's name. |
| resources | A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed. |
| shared\_resources | A map of lists of resources to share in a Bridge perimeter module. Each list should contain all or a subset of the perimeters resources |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
12 changes: 12 additions & 0 deletions modules/regular_service_perimeter/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@ output "shared_resources" {
value = var.shared_resources
depends_on = [google_access_context_manager_service_perimeter.regular_service_perimeter]
}

output "resources" {
description = "A list of GCP resources that are inside of the service perimeter. Currently only projects are allowed."
value = var.resources
depends_on = [google_access_context_manager_service_perimeter.regular_service_perimeter]
}

output "perimeter_name" {
description = "The perimeter's name."
value = var.perimeter_name
depends_on = [google_access_context_manager_service_perimeter.regular_service_perimeter]
}

0 comments on commit 1787b21

Please sign in to comment.