Files
prowler/permissions/templates/terraform/s3-integration/variables.tf
T
8d9bf2384f docs: S3 tutorial documentation (#8414)
Co-authored-by: Pepe Fagoaga <pepe@prowler.com>
Co-authored-by: Adrián Jesús Peña Rodríguez <adrianjpr@gmail.com>
2025-08-07 16:04:42 +05:45

30 lines
962 B
Terraform

variable "s3_integration_bucket_name" {
type = string
description = "The S3 bucket name where Prowler will store scan reports for your cloud providers."
validation {
condition = length(var.s3_integration_bucket_name) > 0
error_message = "s3_integration_bucket_name must not be empty."
}
}
variable "s3_integration_bucket_account_id" {
type = string
description = "The AWS Account ID owner of the S3 Bucket."
validation {
condition = length(var.s3_integration_bucket_account_id) == 12 && can(tonumber(var.s3_integration_bucket_account_id))
error_message = "s3_integration_bucket_account_id must be a valid 12-digit AWS Account ID."
}
}
variable "prowler_role_name" {
type = string
description = "Name of the Prowler scan IAM role to attach the S3 policy to."
validation {
condition = length(var.prowler_role_name) > 0
error_message = "prowler_role_name must not be empty."
}
}