18 lines
631 B
HCL
18 lines
631 B
HCL
data "aws_caller_identity" "this" {}
|
|
|
|
locals {
|
|
default-tags = merge({
|
|
ServiceProvider = "None"
|
|
Environment = var.environment
|
|
Project = var.project
|
|
Application = var.application
|
|
TerraformMode = "managed"
|
|
TerraformDir = "${local.path-cwd-list[length(local.path-cwd-list) - 2]}/${local.path-cwd-list[length(local.path-cwd-list) - 1]}"
|
|
|
|
CreatedBy = data.aws_caller_identity.this.arn
|
|
BuildDate = formatdate("YYYYMMDD", timestamp())
|
|
})
|
|
resource-prefix = "${var.environment}-${var.aws-region-short}-${var.customer-name}-${var.project}"
|
|
path-cwd-list = split("/", path.cwd)
|
|
|
|
} |