vars.tf 761 B

12345678910111213141516171819202122
  1. variable "tags" {
  2. type = map
  3. default = { }
  4. }
  5. # ----------------------------------
  6. # Below this line are variables inherited from higher levels, so they
  7. # do not need to be explicitly passed to this module.
  8. variable "standard_tags" { type = map }
  9. variable "account_list" { type = list }
  10. variable "aws_account_id" { type = string }
  11. variable "aws_partition" { type = string }
  12. variable "aws_region" { type = string }
  13. variable "environment" { type = string }
  14. variable "key_pairs" { type = map }
  15. variable "c2_accounts" { type = map }
  16. locals {
  17. logging_environment = var.environment == "common" ? "prod" : var.environment # common logs to prod
  18. c2_account = var.c2_accounts[var.aws_partition]
  19. is_c2 = var.aws_account_id == local.c2_account ? true : false
  20. }