-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
43 lines (40 loc) · 1005 Bytes
/
variables.tf
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
variable "region" {
type = string
nullable = false
default = "us-east-2"
}
variable "iam_role" {
type = map(
object(
{
name = string
managed_policy = string
}
)
)
nullable = false
default = {
admin = {
name = "Administrator",
managed_policy = "AdministratorAccess",
},
power_user = {
name = "PowerUser",
managed_policy = "PowerUserAccess",
},
read_only = {
name = "ReadOnly",
managed_policy = "ReadOnlyAccess",
},
}
}
variable "cidr_blocks" {
type = list(string)
nullable = false
default = ["0.0.0.0/0"]
description = "List of IPv4 CIDR blocks allowed as source addresses to use the Roles Anywhere profiles"
validation {
condition = alltrue([for cidr_block in var.cidr_blocks : can(cidrhost(cidr_block, 0))])
error_message = "The value of cidr_blocks variable must be a list of valid IPv4 CIDR blocks."
}
}