variables.tf 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. variable "github_app" {
  2. description = "GitHub app parameters, see your github app. Ensure the key is the base64-encoded `.pem` file (the output of `base64 app.private-key.pem`, not the content of `private-key.pem`)."
  3. type = object({
  4. key_base64 = string
  5. id = string
  6. webhook_secret = string
  7. })
  8. }
  9. variable "environment" {
  10. description = "A name that identifies the environment, used as prefix and for tagging."
  11. type = string
  12. default = null
  13. validation {
  14. condition = var.environment == null
  15. error_message = "The \"environment\" variable is no longer used. To migrate, set the \"prefix\" variable to the original value of \"environment\" and optionally, add \"Environment\" to the \"tags\" variable map with the same value."
  16. }
  17. }
  18. variable "prefix" {
  19. description = "The prefix used for naming resources"
  20. type = string
  21. default = "github-actions"
  22. }
  23. variable "kms_key_arn" {
  24. description = "Optional CMK Key ARN to be used for Parameter Store."
  25. type = string
  26. default = null
  27. }
  28. variable "tags" {
  29. description = "Map of tags that will be added to created resources. By default resources will be tagged with name and environment."
  30. type = map(string)
  31. default = {}
  32. }