Terraofrm module to deploy cloudwatch_exporter on kubernetes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

163 lines
3.6KB

  1. #####
  2. # Global
  3. #####
  4. variable "annotations" {
  5. description = "Additionnal annotations that will be merged on all resources."
  6. default = {}
  7. }
  8. variable "enabled" {
  9. description = "Whether or not to enable this module."
  10. default = true
  11. }
  12. variable "labels" {
  13. description = "Additionnal labels that will be merged on all resources."
  14. default = {}
  15. }
  16. variable "namespace" {
  17. description = "Namespace in which the module will be deployed."
  18. default = "default"
  19. }
  20. #####
  21. # Prometheus
  22. #####
  23. variable "prometheus_alert_groups_rules_labels" {
  24. description = "Map of strings that will be merge on all prometheus alert groups rules labels."
  25. default = {}
  26. }
  27. variable "prometheus_alert_groups_rules_annotations" {
  28. description = "Map of strings that will be merge on all prometheus alert groups rules annotations."
  29. default = {}
  30. }
  31. #####
  32. # Application
  33. #####
  34. variable "access_key" {
  35. description = "Client ID that will be used by the cloudwatch-exporter."
  36. type = string
  37. }
  38. variable "secret_key" {
  39. description = "Client secret that will be used by the cloudwatch-exporter."
  40. type = string
  41. }
  42. variable "configuration" {
  43. description = "Object representating the yaml configuration for cloudwatch-exporter."
  44. type = any
  45. }
  46. #####
  47. # Deployment
  48. #####
  49. variable "deployment_annotations" {
  50. description = "Additionnal annotations that will be merged on the deployment."
  51. default = {}
  52. }
  53. variable "deployment_labels" {
  54. description = "Additionnal labels that will be merged on the deployment."
  55. default = {}
  56. }
  57. variable "deployment_name" {
  58. description = "Name of the deployment that will be create."
  59. default = "cloudwatch-exporter"
  60. }
  61. variable "deployment_template_annotations" {
  62. description = "Additionnal annotations that will be merged on the deployment template."
  63. default = {}
  64. }
  65. variable "deployment_template_labels" {
  66. description = "Additionnal labels that will be merged on the deployment template."
  67. default = {}
  68. }
  69. variable "image_name" {
  70. description = "Name of the docker image to use."
  71. default = "prom/cloudwatch-exporter"
  72. }
  73. variable "image_pull_policy" {
  74. description = "Image pull policy on the main container."
  75. default = "IfNotPresent"
  76. }
  77. variable "image_version" {
  78. description = "Tag of the docker image to use."
  79. default = "latest"
  80. }
  81. variable "replicas" {
  82. description = "Number of replicas to deploy."
  83. default = 1
  84. }
  85. #####
  86. # Service
  87. #####
  88. variable "service_annotations" {
  89. description = "Additionnal annotations that will be merged for the service."
  90. default = {}
  91. }
  92. variable "service_labels" {
  93. description = "Additionnal labels that will be merged for the service."
  94. default = {}
  95. }
  96. variable "service_name" {
  97. description = "Name of the service that will be create"
  98. default = "cloudwatch-exporter"
  99. }
  100. #####
  101. # Secret
  102. #####
  103. variable "secret_annotations" {
  104. description = "Additionnal annotations that will be merged for the secret."
  105. default = {}
  106. }
  107. variable "secret_labels" {
  108. description = "Additionnal labels that will be merged for the secret."
  109. default = {}
  110. }
  111. variable "secret_name" {
  112. description = "Name of the secret that will be created."
  113. default = "cloudwatch-exporter"
  114. }
  115. #####
  116. # Config Map
  117. #####
  118. variable "config_map_annotations" {
  119. description = "Additionnal annotations that will be merged for the config map."
  120. default = {}
  121. }
  122. variable "config_map_labels" {
  123. description = "Additionnal labels that will be merged for the config map."
  124. default = {}
  125. }
  126. variable "config_map_name" {
  127. description = "Name of the config map that will be created."
  128. default = "cloudwatch-exporter"
  129. }