Skip to content

Commit

Permalink
feat: Add discovery endpoint output to memcache module (#62)
Browse files Browse the repository at this point in the history
* add discovery endpoint to memcache module

* formatting fixes
  • Loading branch information
dferramosi authored Sep 27, 2021
1 parent af2b660 commit 4639ace
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/memcache/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ output "output_region" {
output "output_nodes" {
value = module.memcache.nodes
}

output "output_discovery" {
value = module.memcache.discovery
}
1 change: 1 addition & 0 deletions modules/memcache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ A Terraform module for creating a fully functional Google Memorystore (memcache)

| Name | Description |
|------|-------------|
| discovery | The memorystore discovery endpoint. |
| id | The memorystore instance ID. |
| nodes | Data about the memcache nodes |
| region | The region the instance lives in. |
Expand Down
5 changes: 5 additions & 0 deletions modules/memcache/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ output "nodes" {
description = "Data about the memcache nodes"
value = google_memcache_instance.self.memcache_nodes
}

output "discovery" {
description = "The memorystore discovery endpoint."
value = google_memcache_instance.self.discovery_endpoint
}
4 changes: 3 additions & 1 deletion test/integration/memcache/inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ attributes:
- name: output_nodes
required: true
type: hash

- name: output_discovery
required: true
type: string

0 comments on commit 4639ace

Please sign in to comment.