variables.tf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. variable "cloudtrail_bucket" {
  2. description = "Name of bucket for CloudTrail logs"
  3. type = string
  4. }
  5. variable "cloudtrail_name" {
  6. default = "cloudtrail-all"
  7. description = "Name for the CloudTrail"
  8. type = string
  9. }
  10. variable "iam_path" {
  11. default = "/"
  12. description = "Path under which to put the IAM role. Should begin and end with a '/'."
  13. type = string
  14. }
  15. variable "kms_key_id" {
  16. description = "KMS key ARN to use for encrypting CloudTrail logs"
  17. type = string
  18. }
  19. variable "lambda_functions" {
  20. default = [ ]
  21. description = "Lambda functions to log. Specify `[\"arn:aws:lambda\"]` for all, or `[ ]` for none."
  22. type = list
  23. }
  24. variable "log_group_name" {
  25. default = "cloudtrail2cwl"
  26. description = "Name for CloudTrail log group"
  27. type = string
  28. }
  29. variable "region" {
  30. description = "Region that CloudWatch logging and the S3 bucket will live in"
  31. type = string
  32. }
  33. variable "retention_in_days" {
  34. default = 7
  35. description = "How long should CloudTrail logs be retained in CloudWatch (does not affect S3 storage). Set to -1 for indefinite storage."
  36. type = number
  37. }
  38. variable "s3_object_level_buckets" {
  39. default = [ ]
  40. description = "ARNs of buckets for which to enable object level logging. Specify `[\"arn:aws:s3:::\"]` for all, or `[ ]` for none. If listing ARNs, make sure to end each one with a `/`."
  41. type = list
  42. }