2021-01-26 21:40:02 +08:00
|
|
|
variable "aws-region" {}
|
|
|
|
variable "aws-region-short" {}
|
|
|
|
variable "customer-name" {}
|
|
|
|
variable "environment" {}
|
|
|
|
variable "project" {}
|
|
|
|
variable "application" {}
|
|
|
|
|
|
|
|
locals {
|
|
|
|
default-tags = {
|
2021-01-27 16:26:43 +08:00
|
|
|
ServiceProvider = "RackspaceTechnology"
|
2021-01-26 21:40:02 +08:00
|
|
|
Environment = var.environment
|
|
|
|
Project = var.project
|
|
|
|
Application = var.application
|
|
|
|
TerraformMode = "managed"
|
2021-01-27 16:26:43 +08:00
|
|
|
TerraformDir = trimprefix(path.cwd, "/my/work/xpk-git/")
|
|
|
|
CreatedBy = split(":",data.aws_caller_identity.this.user_id)[1]
|
2021-01-26 21:40:02 +08:00
|
|
|
BuildDate = formatdate("YYYYMMDD", timestamp())
|
|
|
|
}
|
|
|
|
ct-bucket-name = "${var.environment}-${var.aws-region-short}-${var.customer-name}-${var.project}-ctbucket-${data.aws_caller_identity.this.account_id}"
|
|
|
|
resource-prefix = "${var.environment}-${var.aws-region-short}-${var.customer-name}-${var.project}"
|
|
|
|
}
|
|
|
|
|