account.hcl 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # Set account-wide variables. These are automatically pulled in to configure the remote state bucket in the root
  2. # terragrunt.hcl configuration.
  3. locals {
  4. account_name = "afs-mdr-prod-c2-gov"
  5. account_alias = "afs-mdr-prod-c2-gov"
  6. aws_account_id = "721817724804"
  7. instance_termination_protection = true # set to true for production!
  8. account_tags = { }
  9. c2_account_standards_path = "../../mdr-prod-c2/005-account-standards-c2"
  10. # For CIDR assignment, see https://github.mdr.defpoint.com/mdr-engineering/msoc-infrastructure/wiki/IP-Address-Allocation
  11. standard_vpc_cidr = "10.40.0.0/22"
  12. vpc_info = {
  13. "vpc-splunk" = {
  14. "name" = "vpc-splunk"
  15. "purpose" = "Splunk Systems (MOOSE)"
  16. "cidr" = "10.20.16.0/22",
  17. "tgw_attached" = true,
  18. },
  19. "vpc-system-services" = {
  20. "name" = "vpc-system-services",
  21. "purpose" = "Internal Services for Systems",
  22. "cidr" = "10.40.0.0/22",
  23. "tgw_attached" = false, # Attached via tgw creation
  24. },
  25. "vpc-qualys" = {
  26. "name" = "vpc-qualys",
  27. "purpose" = "Security Scanning",
  28. "cidr" = "10.40.12.0/22",
  29. "tgw_attached" = true,
  30. },
  31. "vpc-interconnects" = {
  32. "name" = "vpc-interconnects",
  33. "purpose" = "Interconnections between AWS partitions",
  34. "cidr" = "10.179.0.0/22",
  35. "tgw_attached" = true,
  36. },
  37. "vpc-access" = {
  38. "name" = "vpc-access"
  39. "purpose" = "Systems providing restricted access, such as bastions and vpn concentrators"
  40. "cidr" = "10.40.20.0/22",
  41. "tgw_attached" = true,
  42. },
  43. "vpc-portal" = {
  44. "name" = "vpc-portal"
  45. "purpose" = "The Customer Portal"
  46. "cidr" = "10.40.32.0/24",
  47. "tgw_attached" = true,
  48. },
  49. "vpc-public" = {
  50. "name" = "vpc-public"
  51. "purpose" = "Publicly Accessible Infrastructure Services, such as GHE and Jira"
  52. "cidr" = "10.40.24.0/22",
  53. "tgw_attached" = true,
  54. },
  55. "vpc-private-services" = {
  56. "name" = "vpc-private-services"
  57. "purpose" = "Private XDR Services for XDR users"
  58. "cidr" = "10.40.28.0/22",
  59. "tgw_attached" = true,
  60. },
  61. }
  62. # Bastion
  63. bastion_instance_type = "t3a.micro"
  64. # Salt Master
  65. salt_master_instance_type = "t3a.large"
  66. # Proxy
  67. proxy_server_instance_type = "t3a.medium"
  68. # Repo Server
  69. repo_server_instance_type = "t3a.micro"
  70. # DNS Resolver
  71. resolver_instance_type = "t3a.micro"
  72. resolver_instance_key_name = "fdamstra"
  73. # For testing
  74. create_test_instance = false
  75. test_instance_key_name = "fdamstra" # They with which to provision the test instance
  76. # AS Number used for various resources, but not every account needs one.
  77. asn = 64810
  78. security_vpc_cidr = "10.179.0.0/22"
  79. # Interconnects
  80. interconnect_asn = 64888
  81. interconnects_instance_type = "t3a.micro"
  82. interconnects_key_name = "fdamstra" # DO NOT CHANGE
  83. interconnects_count = 2
  84. interconnect_instances_path = "../018-interconnect-instances"
  85. }