output "repository_urls" { description = "Map of repository name → registry URL (used by CI/CD `docker push`)." value = { for name, repo in aws_ecr_repository.this : name => repo.repository_url } } output "repository_arns" { description = "Map of repository name → ARN." value = { for name, repo in aws_ecr_repository.this : name => repo.arn } } output "registry_id" { description = "Account ID hosting the registry (same for all repos)." value = values(aws_ecr_repository.this)[0].registry_id }