terraform/modules/hana-scaleout/outputs.tf (69 lines of code) (raw):
/**
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
output "project_id" {
value = var.project_id
}
output "instances_self_links_master" {
value = module.sap_hana_instance_master.instances_self_links
}
output "instances_self_links_worker" {
value = flatten(module.sap_hana_instance_worker.*.instances_self_links)
}
output "master_instance_name" {
value = (
length(module.sap_hana_instance_master.instances_self_links) > 0
? element(split("/", element(tolist(module.sap_hana_instance_master.instances_self_links), 0)), 10)
: ""
)
}
output "worker_instance_names" {
value = [
for link in flatten(module.sap_hana_instance_worker.*.instances_self_links) : split("/", link)[10]
]
}
output "address_master" {
value = google_compute_address.gcp_sap_hana_intip_master.*.address
}
output "address_worker" {
value = google_compute_address.gcp_sap_hana_intip_worker.*.address
}
output "master_attached_disks_data" {
value = google_compute_attached_disk.master_data.*.device_name
}
output "master_attached_disks_backup" {
value = google_compute_attached_disk.master_backup.*.device_name
}
output "worker_attached_disks_data" {
value = google_compute_attached_disk.worker_data.*.device_name
}
output "hana_data_size" {
value = local.hana_data_size
}
output "hana_shared_size" {
value = local.hana_shared_size
}
output "hana_log_size" {
value = local.hana_log_size
}
output "hana_usr_size" {
value = local.hana_usr_size
}
output "hana_backup_size" {
value = local.hana_backup_size
}
output "inventory" {
value = local.inventory
}