components/terraform/iam-role/variables.tf
3 KB - Открыть исходный файл
variable "enabled" {
type = bool
default = true
description = "Whether to create the IAM role"
}
variable "region" {
type = string
description = "AWS region"
}
variable "namespace" {
type = string
default = "ai"
description = "Namespace for resource naming"
}
variable "lab" {
type = string
description = "Lab identifier"
}
variable "stage" {
type = string
default = "test"
description = "Stage"
}
variable "name" {
type = string
default = "role"
description = "Role name suffix"
}
variable "role_name" {
type = string
default = null
description = "Override full role name (optional)"
}
variable "assume_role_policy" {
type = string
default = null
description = "Custom assume role policy JSON"
}
variable "trusted_services" {
type = list(string)
default = ["lambda.amazonaws.com"]
description = "AWS services that can assume this role"
}
variable "s3_bucket_arns" {
type = list(string)
default = null
description = "S3 bucket ARNs to grant access to"
}
variable "sns_topic_arns" {
type = list(string)
default = null
description = "SNS topic ARNs to grant publish access to"
}
variable "managed_policy_arns" {
type = list(string)
default = []
description = "List of managed policy ARNs to attach"
}
# AI Service toggles
variable "rekognition_enabled" {
type = bool
default = false
description = "Enable Rekognition permissions"
}
variable "textract_enabled" {
type = bool
default = false
description = "Enable Textract permissions"
}
variable "comprehend_enabled" {
type = bool
default = false
description = "Enable Comprehend permissions"
}
variable "transcribe_enabled" {
type = bool
default = false
description = "Enable Transcribe permissions"
}
variable "polly_enabled" {
type = bool
default = false
description = "Enable Polly permissions"
}
variable "translate_enabled" {
type = bool
default = false
description = "Enable Translate permissions"
}
variable "bedrock_enabled" {
type = bool
default = false
description = "Enable Bedrock permissions"
}
variable "cloudwatch_logs_enabled" {
type = bool
default = true
description = "Enable CloudWatch Logs permissions"
}
variable "sns_enabled" {
type = bool
default = false
description = "Enable SNS publish permissions"
}
variable "tags" {
type = map(string)
default = {}
description = "Additional tags"
}