output "cluster_name" {
  description = "The name of the EKS cluster."
  value       = aws_eks_cluster.main.name
}

output "cluster_endpoint" {
  description = "The endpoint for the EKS cluster's Kubernetes API server."
  value       = aws_eks_cluster.main.endpoint
}

output "cluster_ca_certificate" {
  description = "The CA certificate for the EKS cluster."
  value       = base64decode(aws_eks_cluster.main.certificate_authority[0].data)
}

output "bastion_host_public_ip" {
  description = "The public IP address of the bastion host."
  value       = aws_instance.bastion.public_ip
}

output "ecr_repository_url" {
  description = "The URL of the ECR repository."
  value       = aws_ecr_repository.main.repository_url
}

output "efs_file_system_id" {
  description = "The ID of the EFS file system."
  value       = aws_efs_file_system.main.id
}

output "es_domain_endpoint" {
  description = "The endpoint of the Elasticsearch domain."
  value       = aws_elasticsearch_domain.main.endpoint
}

output "rds_instance_address" {
  description = "The address of the RDS instance."
  value       = aws_db_instance.main.address
}

output "s3_bucket_name" {
  description = "The name of the S3 bucket for Terraform state."
  value       = aws_s3_bucket.tfstate.bucket
}

output "sns_topic_arn" {
  description = "The ARN of the SNS topic."
  value       = aws_sns_topic.main.arn
}
