12345678910111213141516171819202122 |
- variable "tags" {
- type = map
- default = { }
- }
- # ----------------------------------
- # Below this line are variables inherited from higher levels, so they
- # do not need to be explicitly passed to this module.
- variable "standard_tags" { type = map }
- variable "account_list" { type = list }
- variable "aws_account_id" { type = string }
- variable "aws_partition" { type = string }
- variable "aws_region" { type = string }
- variable "environment" { type = string }
- variable "key_pairs" { type = map }
- variable "c2_accounts" { type = map }
- locals {
- logging_environment = var.environment == "common" ? "prod" : var.environment # common logs to prod
- c2_account = var.c2_accounts[var.aws_partition]
- is_c2 = var.aws_account_id == local.c2_account ? true : false
- }
|