forked from awslabs/amazon-bedrock-agentcore-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
73 lines (61 loc) · 1.94 KB
/
variables.tf
File metadata and controls
73 lines (61 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
variable "orchestrator_name" {
description = "Name for the orchestrator agent runtime"
type = string
default = "OrchestratorAgent"
validation {
condition = can(regex("^[a-zA-Z][a-zA-Z0-9_]{0,47}$", var.orchestrator_name))
error_message = "Agent name must start with a letter, max 48 characters, alphanumeric and underscores only."
}
}
variable "specialist_name" {
description = "Name for the specialist agent runtime"
type = string
default = "SpecialistAgent"
validation {
condition = can(regex("^[a-zA-Z][a-zA-Z0-9_]{0,47}$", var.specialist_name))
error_message = "Agent name must start with a letter, max 48 characters, alphanumeric and underscores only."
}
}
variable "network_mode" {
description = "Network mode for AgentCore resources"
type = string
default = "PUBLIC"
validation {
condition = contains(["PUBLIC", "PRIVATE"], var.network_mode)
error_message = "Network mode must be either PUBLIC or PRIVATE."
}
}
variable "image_tag" {
description = "Docker image tag"
type = string
default = "latest"
}
variable "aws_region" {
description = "AWS region for deployment (REQUIRED)"
type = string
# No default - must be explicitly provided
validation {
condition = can(regex("^[a-z]{2}-[a-z]+-\\d{1}$", var.aws_region))
error_message = "Must be a valid AWS region (e.g., us-east-1, eu-west-1)"
}
}
variable "environment" {
description = "Environment name"
type = string
default = "dev"
}
variable "stack_name" {
description = "Stack name for resource naming"
type = string
default = "agentcore-multi-agent"
}
variable "environment_variables" {
description = "Environment variables for the agent runtime"
type = map(string)
default = {}
}
variable "ecr_repository_name" {
description = "Base name of the ECR repositories"
type = string
default = "multi-agent"
}