outputs.tf
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# outputs =====================================================================

output "tags" {
  description = "Merged standard tag map combining environment, project, cost center, region, additional_tags, and tags"
  value       = local.tags
}

output "name_prefix" {
  description = "Standard resource name prefix derived as <project>-<environment>"
  value       = local.name_prefix
}

output "account_id" {
  description = "AWS account ID of the caller"
  value       = data.aws_caller_identity.current.account_id
}

output "region" {
  description = "Resolved AWS region (var.region if set, otherwise the current provider region)"
  value       = local.region
}

output "partition" {
  description = "AWS partition (e.g. aws, aws-cn, aws-us-gov)"
  value       = data.aws_partition.current.partition
}