output "data_bucket" {
  description = "Bucket that holds the demo object."
  value       = aws_s3_bucket.this["data"].id
}

output "demo_key" {
  description = "Key of the demo object."
  value       = aws_s3_object.report.key
}

output "code_bucket" {
  description = "Bucket the agent deployment package is uploaded to."
  value       = aws_s3_bucket.this["code"].id
}

output "execution_role_arn" {
  description = "Execution role shared by both runtimes."
  value       = aws_iam_role.runtime.arn
}

output "subnet_ids" {
  description = "Private subnets for the runtimes."
  value       = aws_subnet.private[*].id
}

output "security_group_id" {
  description = "Security group for the runtime network interfaces."
  value       = aws_security_group.runtime.id
}

output "trail_log_group" {
  description = "Log group that receives the demo bucket's data events."
  value       = aws_cloudwatch_log_group.trail.name
}

output "wi_trust_domain" {
  description = "Trust domain for the workload identity provider that poc/agentctl.py creates."
  value       = local.wi_trust_domain
}

output "allowed_subject" {
  description = "Identifier pattern the bucket policy allows."
  value       = local.allowed_subject
}

output "tags" {
  description = "Tags for the resources that poc/agentctl.py creates."
  value       = local.tags
}
