@@ -7,7 +7,7 @@ variable "lambda_logs_retention_in_days" {
7
7
type = number
8
8
description = <<- DESC
9
9
Specifies the number of days you want to retain log events in the specified lambda log group.
10
-
10
+
11
11
Specifying "0" means logs are permanently retained.
12
12
DESC
13
13
default = 1
@@ -27,104 +27,143 @@ variable "service_name" {
27
27
DESC
28
28
29
29
validation {
30
- condition = contains ([
31
- " access-analyzer" ,
32
- " forecast" ,
33
- " apigateway" ,
34
- " appflow" ,
35
- " application-autoscaling" ,
36
- " athena" ,
37
- " autoscaling" ,
38
- " codestar" ,
39
- " connect" ,
40
- " databrew" ,
41
- " xray" ,
42
- " backup" ,
43
- " batch" ,
44
- " acm" ,
45
- " acm-pca" ,
46
- " clouddirectory" ,
47
- " cloudformation" ,
48
- " cloudhsm" ,
49
- " cloudsearch" ,
50
- " cloudtrail" ,
51
- " cloudwatch" ,
52
- " applicationinsights" ,
53
- " logs" ,
54
- " synthetics" ,
55
- " codeartifact" ,
56
- " codebuild" ,
57
- " codecommit" ,
58
- " codedeploy" ,
59
- " codepipeline" ,
60
- " config" ,
61
- " controltower" ,
62
- " dataexchange" ,
63
- " dlm" ,
64
- " datapipeline" ,
65
- " dms" ,
66
- " datasync" ,
67
- " directconnect" ,
68
- " ds" ,
69
- " dynamodb" ,
70
- " ec2" ,
71
- " ec2fleet" ,
72
- " ec2spotfleet" ,
73
- " elasticbeanstalk" ,
74
- " ecr" ,
75
- " ecs" ,
76
- " elasticloadbalancing" ,
77
- " elasticmapreduce" ,
78
- " elastictranscoder" ,
79
- " elasticache" ,
80
- " es" ,
81
- " mediapackage" ,
82
- " emr" ,
83
- " events" ,
84
- " schemas" ,
85
- " gamelift" ,
86
- " glacier" ,
87
- " glue" ,
88
- " greengrass" ,
89
- " groundstation" ,
90
- " guardduty" ,
91
- " health" ,
92
- " iotanalytics" ,
93
- " kms" ,
94
- " kinesis" ,
95
- " lambda" ,
96
- " macie" ,
97
- " mediaconvert" ,
98
- " medialive" ,
99
- " mediastore" ,
100
- " metering-marketplace" ,
101
- " monitoring" ,
102
- " opsworks" ,
103
- " redshift" ,
104
- " redshift-data" ,
105
- " rds" ,
106
- " ram" ,
107
- " s3-outposts" ,
108
- " sagemaker" ,
109
- " secretsmanager" ,
110
- " securityhub" ,
111
- " sts" ,
112
- " sms" ,
113
- " servicecatalog" ,
114
- " signer" ,
115
- " sns" ,
116
- " sqs" ,
117
- " s3" ,
118
- " swf" ,
119
- " states" ,
120
- " storagegateway" ,
121
- " ssm" ,
122
- " tag" ,
123
- " transcribe" ,
124
- " waf" ,
125
- " workdocs" ,
126
- " workspaces" , ],
127
- var. service_name
30
+ condition = contains (
31
+ [
32
+ " a4b" , // alexa for business
33
+ " access-analyzer" ,
34
+ " acm" ,
35
+ " acm-pca" ,
36
+ " apigateway" ,
37
+ " appflow" ,
38
+ " application-autoscaling" ,
39
+ " application-cost-profiler" ,
40
+ " applicationinsights" , // cloudwatch application insights
41
+ " athena" ,
42
+ " autoscaling" ,
43
+ " aws.opsworks-cm" , // opsworks for chef automate
44
+ " backup" ,
45
+ " batch" ,
46
+ " braket" ,
47
+ " chime" ,
48
+ " clouddirectory" ,
49
+ " cloudformation" ,
50
+ " cloudhsm" ,
51
+ " cloudsearch" ,
52
+ " cloudshell" ,
53
+ " cloudtrail" ,
54
+ " cloudwatch" ,
55
+ " codeartifact" ,
56
+ " codebuild" ,
57
+ " codecommit" ,
58
+ " codedeploy" ,
59
+ " codepipeline" ,
60
+ " codestar" ,
61
+ " codestar-connections" ,
62
+ " cognito-identity" ,
63
+ " cognito-idp" ,
64
+ " cognito-sync" ,
65
+ " config" ,
66
+ " connect" ,
67
+ " controltower" ,
68
+ " databrew" ,
69
+ " dataexchange" ,
70
+ " datapipeline" ,
71
+ " datasync" ,
72
+ " devops-guru" ,
73
+ " directconnect" ,
74
+ " dlm" ,
75
+ " dms" ,
76
+ " drs" , // elastic disater recovery service
77
+ " ds" ,
78
+ " dynamodb" ,
79
+ " ec2" ,
80
+ " ec2fleet" ,
81
+ " ec2spotfleet" ,
82
+ " ecr" ,
83
+ " ecs" ,
84
+ " elasticache" ,
85
+ " elasticbeanstalk" ,
86
+ " elasticfilesystem" ,
87
+ " elasticloadbalancing" ,
88
+ " elasticmapreduce" ,
89
+ " elastictranscoder" ,
90
+ " emr" ,
91
+ " emr-containers" ,
92
+ " es" , // amazon opensearch service (elasticsearch service)
93
+ " events" , // eventbridge
94
+ " firehose" ,
95
+ " fis" ,
96
+ " forecast" ,
97
+ " gamelift" ,
98
+ " geo" , // amazon location service
99
+ " glacier" ,
100
+ " glue" ,
101
+ " greengrass" ,
102
+ " groundstation" ,
103
+ " guardduty" ,
104
+ " health" ,
105
+ " iam" ,
106
+ " inspector2" ,
107
+ " inspector" ,
108
+ " iot" ,
109
+ " iotanalytics" ,
110
+ " ivs" , // interactive video service
111
+ " kinesis" ,
112
+ " kms" ,
113
+ " lambda" ,
114
+ " logs" , // cloudwatch logs
115
+ " machinelearning" ,
116
+ " macie" ,
117
+ " managedblockchain" ,
118
+ " managedservices" ,
119
+ " mediaconnect" ,
120
+ " mediaconvert" ,
121
+ " medialive" ,
122
+ " mediapackage" , // elemental media package
123
+ " mediastore" ,
124
+ " metering-marketplace" ,
125
+ " mgn" , // application migration service
126
+ " migrationhub" ,
127
+ " monitoring" ,
128
+ " opsworks" ,
129
+ " organizations" ,
130
+ " polly" ,
131
+ " proton" ,
132
+ " qldb" ,
133
+ " ram" ,
134
+ " rds" ,
135
+ " redshift" ,
136
+ " redshift-data" ,
137
+ " refactor-spaces" , // migration hub refactor spaces
138
+ " s3" ,
139
+ " s3-outposts" ,
140
+ " sagemaker" ,
141
+ " savingsplans" ,
142
+ " schemas" , // eventbridge schema registry
143
+ " secretsmanager" ,
144
+ " securityhub" ,
145
+ " servicecatalog" ,
146
+ " signer" ,
147
+ " signin" , // console sign-in
148
+ " sms" , // server migration service
149
+ " sns" ,
150
+ " sqs" ,
151
+ " ssm" ,
152
+ " states" ,
153
+ " storagegateway" ,
154
+ " sts" ,
155
+ " support" ,
156
+ " swf" , // simple worfklow service
157
+ " synthetics" , // cloudwatch synthetics
158
+ " tag" ,
159
+ " transcribe" ,
160
+ " translate" ,
161
+ " voiceid" ,
162
+ " waf" ,
163
+ " workdocs" ,
164
+ " workspaces" ,
165
+ " xray" ,
166
+ ], var. service_name
128
167
)
129
168
error_message = " The provided value is not supported for service_name, consult the module variables.tf for the possible input values."
130
169
}
0 commit comments