-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
170 lines (164 loc) · 4.11 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
variable "tags" {
description = "A map of tags to add to all resources."
type = map(string)
}
variable "lambda_logs_retention_in_days" {
type = number
description = <<-DESC
Specifies the number of days you want to retain log events in the specified lambda log group.
Specifying "0" means logs are permanently retained.
DESC
default = 1
}
variable "name" {
type = string
description = "Common name shared between resources."
}
variable "service_name" {
type = string
description = <<-DESC
Name of the service to create a catch-all eventbridge rule for.
See variables.tf for a complete list of input options.
DESC
validation {
condition = contains(
[
"a4b", // alexa for business
"access-analyzer",
"acm",
"acm-pca",
"apigateway",
"appflow",
"application-autoscaling",
"application-cost-profiler",
"applicationinsights", // cloudwatch application insights
"athena",
"autoscaling",
"aws.opsworks-cm", // opsworks for chef automate
"backup",
"batch",
"braket",
"chime",
"clouddirectory",
"cloudformation",
"cloudhsm",
"cloudsearch",
"cloudshell",
"cloudtrail",
"cloudwatch",
"codeartifact",
"codebuild",
"codecommit",
"codedeploy",
"codepipeline",
"codestar",
"codestar-connections",
"cognito-identity",
"cognito-idp",
"cognito-sync",
"config",
"connect",
"controltower",
"databrew",
"dataexchange",
"datapipeline",
"datasync",
"devops-guru",
"directconnect",
"dlm",
"dms",
"drs", // elastic disater recovery service
"ds",
"dynamodb",
"ec2",
"ec2fleet",
"ec2spotfleet",
"ecr",
"ecs",
"elasticache",
"elasticbeanstalk",
"elasticfilesystem",
"elasticloadbalancing",
"elasticmapreduce",
"elastictranscoder",
"emr",
"emr-containers",
"es", // amazon opensearch service (elasticsearch service)
"events", // eventbridge
"firehose",
"fis",
"forecast",
"gamelift",
"geo", // amazon location service
"glacier",
"glue",
"greengrass",
"groundstation",
"guardduty",
"health",
"iam",
"inspector2",
"inspector",
"iot",
"iotanalytics",
"ivs", // interactive video service
"kinesis",
"kms",
"lambda",
"logs", // cloudwatch logs
"machinelearning",
"macie",
"managedblockchain",
"managedservices",
"mediaconnect",
"mediaconvert",
"medialive",
"mediapackage", // elemental media package
"mediastore",
"metering-marketplace",
"mgn", // application migration service
"migrationhub",
"monitoring",
"opsworks",
"organizations",
"polly",
"proton",
"qldb",
"ram",
"rds",
"redshift",
"redshift-data",
"refactor-spaces", // migration hub refactor spaces
"s3",
"s3-outposts",
"sagemaker",
"savingsplans",
"schemas", // eventbridge schema registry
"secretsmanager",
"securityhub",
"servicecatalog",
"signer",
"signin", // console sign-in
"sms", // server migration service
"sns",
"sqs",
"ssm",
"states",
"storagegateway",
"sts",
"support",
"swf", // simple worfklow service
"synthetics", // cloudwatch synthetics
"tag",
"transcribe",
"translate",
"voiceid",
"waf",
"workdocs",
"workspaces",
"xray",
], var.service_name
)
error_message = "The provided value is not supported for service_name, consult the module variables.tf for the possible input values."
}
}