vars.tf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. variable "tags" {
  2. description = "Tags to add to the resource (in addition to global standard tags)"
  3. type = map(any)
  4. default = {}
  5. }
  6. variable "name" { type = string }
  7. variable "repository_name" { type = string }
  8. variable "github_clone_url" { type = string }
  9. variable "vpc_id" { type = string }
  10. variable "private_subnets" { type = list(any) }
  11. variable "public_subnets" { type = list(any) }
  12. variable "service_role" { type = string }
  13. variable "xdr-s3-binaries-policy" { type = string }
  14. variable "kms_key" {
  15. type = string
  16. default = ""
  17. }
  18. variable "source_version" {
  19. description = "Tag or branch for the git repository."
  20. type = string
  21. default = "main"
  22. }
  23. variable "badge_enabled" {
  24. type = string
  25. default = "false"
  26. }
  27. variable "buildspec" {
  28. type = string
  29. default = "buildspec.yml"
  30. }
  31. variable "schedule_expression" {
  32. type = string
  33. default = ""
  34. }
  35. variable "image" {
  36. type = string
  37. default = "aws/codebuild/amazonlinux2-x86_64-standard:3.0"
  38. }
  39. variable "privileged_mode" {
  40. type = bool
  41. default = true
  42. }
  43. variable "enable_webhook" {
  44. type = bool
  45. default = false
  46. }
  47. variable "env_vars" {
  48. type = map(any)
  49. default = {}
  50. }
  51. variable "webhook_filter_pattern" {
  52. type = string
  53. default = "^refs/heads/main$"
  54. }