mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-22 19:34:22 +00:00
Co-authored-by: Pepe Fagoaga <pepe@prowler.com> Co-authored-by: Adrián Jesús Peña Rodríguez <adrianjpr@gmail.com>
30 lines
962 B
Terraform
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."
|
|
}
|
|
}
|