-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
46 lines (38 loc) · 1.18 KB
/
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
44
45
46
variable "cloudwatch_vpce_security_group" {
type = string
description = "ID of the security group containing the VPC endpoint for CloudWatch Logs"
default = ""
}
variable "iam_role_permission_boundary" {
type = string
description = "The ARN of the IAM policy to use as a permission boundary for the IAM role"
default = null
}
variable "iam_role_prefix" {
type = string
description = "A prefix to use for the IAM role name"
default = ""
}
variable "namespace" {
type = string
description = "The namespace prefix to use for all resources"
default = "util-fns"
}
variable "powertools_version" {
type = string
description = "The version of the AWS Lambda Powertools Lambda layer"
default = "4"
}
variable "subnets" {
type = list(string)
description = "A list of subnet IDs to use for the VPC"
}
variable "tags" {
type = map(string)
description = "A map of tags to apply to all resources"
default = {}
}
locals {
namespace = var.namespace != "" ? "${var.namespace}-" : ""
iam_role_prefix = var.iam_role_prefix != "" ? "${var.iam_role_prefix}-${local.namespace}" : local.namespace
}