output "ecs_id" {
  description = "Id of ECS security group."
  value       = module.sg-ecs.sg_id
}

output "management_id" {
  description = "Id of management security group"
  value       = aws_security_group.remote_management_access.id
}

output "rdp_management_id" {
  description = "Id of RDP management security group"
  value       = var.rdp_enabled ? aws_security_group.remote_management_access_rdp[0].id : null
}

output "ext_http_debug_id" {
  description = "Id of HTTP debug security group"
  value       = aws_security_group.debug_access_http.id
}

output "ext_https_debug_id" {
  description = "Id of HTTPS debug security group"
  value       = aws_security_group.debug_access_https.id
}

output "int_http_debug_id" {
  description = "Id of HTTP debug security group"
  value       = aws_security_group.internal_debug_access_http.id
}

output "int_https_debug_id" {
  description = "Id of HTTPS debug security group"
  value       = aws_security_group.internal_debug_access_https.id
}

output "db_debug_id" {
  description = "Id of debug security group"
  value       = aws_security_group.db_debug_access.id
}

output "redis_debug_id" {
  description = "Id of debug security group"
  value       = aws_security_group.redis_debug_access.id
}

output "alb_id" {
  description = "Id of ALB security group."
  value       = module.sg-alb.sg_id
}

output "aurora_id" {
  description = "Id of Aurora security group."
  value       = module.sg-aurora.sg_id
}

output "lambda_id" {
  description = "Id of lambda security group."
  value       = module.sg-lambda.sg_id
}

output "batch_id" {
  description = "Id of batch security group."
  value       = module.sg-batch.sg_id
}

output "nat_web_id" {
  description = "Id of NAT web access security group."
  value       = aws_security_group.nat_web_sg.id
}

output "quicksight_id" {
  description = "Id of batch security group."
  value       = module.sg-quicksight.sg_id
}

output "es_id" {
  description = "Id of batch security group."
  value       = module.sg-es.sg_id
}

output "kinesis_endpoint_id" {
  description = "Id of batch security group."
  value       = module.sg-kinesis-endpoint.sg_id
}

output "kafka_id" {
  description = "Id of MKS security group."
  value       = module.sg-kafka.sg_id
}

output "kafka_debug_id" {
  description = "Id of MKS security group."
  value       = aws_security_group.kafka_debug_access.id
}

output "sm_endpoint_id" {
  description = "Id of secrets manager endpoint SG."
  value       = aws_security_group.sg_sm_endpoint.id
}

output "zabbix_id" {
  description = "Id of Zabbix security group."
  value       = var.zabbix_enabled ? module.sg-zabbix[0].sg_id : null
}
