-
Notifications
You must be signed in to change notification settings - Fork 14
/
2-variables.tf
1232 lines (1009 loc) · 30.9 KB
/
2-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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
// Common variables
*/
variable "region" {
type = string
description = "Region to work on."
default = "us-east-1"
}
variable "env" {
type = string
description = "Stage to work on (dev/stg/prod)."
default = "dev"
}
variable "tags" {
type = map(string)
description = "Tags to add to all resources."
default = {}
}
/*
// ACM variables
*/
variable "acm_domain_name" {
type = string
description = "A domain name for which the certificate should be issued"
default = "acm.trackit.boilerplate.internal"
}
/*
// ALB variables
*/
/*
// AutoScalling variables
*/
/*
// Backup variables
*/
variable "backup_name" {
type = string
description = "Name of your AWS Backup"
}
/*
// Client VPN variables
*/
/*
// CloudFront variables
*/
variable "cdn_bucket_name" {
type = string
description = "The bucket name for CDN"
default = "tf-boilerplate-cloudfront-bucket"
}
/*
// CloudTrail variables
*/
variable "cloudtrail_name" {
type = string
description = "Solution name, e.g. 'app' or 'jenkins'"
default = "app"
}
variable "cloudtrail_s3_name" {
type = string
description = "S3 name, e.g. 'app' or 'jenkins'"
default = "app"
}
variable "cloudtrail_log_file_validation" {
type = bool
description = "Specifies whether log file integrity validation is enabled. Creates signed digest for validated contents of logs"
default = true
}
variable "cloudtrail_include_global_service_events" {
type = bool
description = "Specifies whether the trail is publishing events from global services such as IAM to the log files"
default = true
}
variable "cloudtrail_is_multi_region_trail" {
type = bool
description = "Specifies whether the trail is created in the current region or in all regions"
default = false
}
variable "cloudtrail_enable_logging" {
type = bool
description = "Enable logging for the trail"
default = true
}
variable "cloudtrail_account_id" {
type = string
description = "The account ID where the bucket S3"
default = ""
}
/*
// CodeBuild variables
*/
variable "codebuild_name" {
type = string
description = "Name of codebuild module"
default = ""
}
variable "codebuild_image" {
type = string
description = "Build container_image"
default = "aws/codebuild/standard:2.0"
}
variable "codebuild_compute_type" {
type = string
description = "Instance type for build"
default = "BUILD_GENERAL1_SMALL"
}
variable "codebuild_timeout" {
type = number
description = "Timeout build time in minutes"
default = 60
}
variable "codebuild_privileged_mode" {
type = bool
description = "Enables docker daemon inside docker container of the instance"
default = true
}
variable "codebuild_artifact_type" {
type = string
description = "Build output artifact type: CODEPIPELINE, NO_ARTIFACTS or S3"
default = "CODEPIPELINE"
}
variable "github_token" {
type = string
description = "Github token to use for retrieving repository"
}
variable "codebuild_build_type" {
type = string
description = "Build environment type, either LINUX_CONTAINER or WINDOWS_CONTAINER"
default = "LINUX_CONTAINER"
}
/*
// CodeCommit variables
*/
/*
// CodeDeploy variables
*/
/*
// Cognito variables
*/
variable "user_pool_name" {
type = string
description = "The User Pool Name"
default = "userpool-name"
}
variable "cognito_alias_attributes" {
type = list(string)
description = "Attributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username. Conflicts with username_attributes"
default = [
"email",
"phone_number"
]
}
variable "cognito_auto_verified_attributes" {
type = list(string)
description = "The attributes to be auto-verified. Possible values: email, phone_number"
default = [
"email"
]
}
variable "cognito_schemas" {
type = list(any)
description = "A container with the schema attributes of a user pool. Maximum of 50 attributes"
default = []
}
variable "cognito_string_schemas" {
type = list(any)
description = "A container with the string schema attributes of a user pool. Maximum of 50 attributes"
default = []
}
variable "cognito_client_name" {
type = string
description = "The name of the application client"
default = "client-name"
}
/*
// CodePipeline variables
*/
/*
// EC2 variables
*/
variable "ec2_name" {
type = string
description = "Name to be used on all resources as prefix"
default = "test-ec2"
}
variable "ec2_instance_count" {
type = number
description = "Number of instances to launch"
default = 1
}
variable "ec2_ami" {
type = string
description = "ID of AMI to use for the instance"
default = "ami-0ff8a91507f77f867"
}
variable "ec2_instance_type" {
type = string
description = "The type of instance to start"
default = "t2.micro"
}
variable "ec2_key_name" {
type = string
description = "The key name to use for the instance"
default = ""
}
variable "monitoring" {
type = bool
description = "If true, the launched EC2 instance will have detailed monitoring enabled"
default = true
}
/*
// ECR variables
*/
variable "ecr_name" {
type = string
description = "The Name of the application or solution (e.g. bastion or portal)"
default = "ecr"
}
variable "ecr_attributes" {
type = list(string)
description = "Additional attributes (e.g. policy or role)"
default = []
}
variable "ecr_image_names" {
type = list(string)
description = "List of Docker local image names, used as repository names for AWS ECR"
default = []
}
variable "ecr_image_tag" {
type = string
description = "The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE"
default = "MUTABLE"
}
variable "ecr_max_image" {
type = number
description = "How many Docker Image versions AWS ECR will store"
default = 500
}
variable "ecr_scan_images_on_push" {
type = bool
description = "Indicates whether images are scanned after being pushed to the repository (true) or not (false)"
default = false
}
/*
// ECS variables
*/
variable "ecs_role_name" {
type = string
description = "The name of the task assume role"
default = "ecs-task-role-boilerplate"
}
variable "ecs_container_memory" {
type = number
description = "The amount of memory (in MiB) to allow the container to use. This is a hard limit, if the container attempts to exceed the container_memory, the container is killed. This field is optional for Fargate launch type and the total amount of container_memory of all containers in a task will need to be lower than the task memory value"
default = null
}
variable "ecs_task_cpu" {
type = number
description = "The CPU of the task definition"
default = 512
}
variable "ecs_task_family" {
type = string
description = "Name of the family"
default = "ecs-task-boilerplate"
}
variable "ecs_container_name" {
type = string
description = "Name of the ECS container"
default = "app"
}
variable "ecs_execution_role_name" {
type = string
description = "Name of the execution role"
default = "EcsExecutionRole"
}
variable "ecs_cluster_name" {
type = string
description = "Name of the ECS Cluster"
default = "ecs-cluster-boilerplate"
}
variable "ecs_service_name" {
type = string
description = "Name of the ECS Service"
default = "ecs-service-boilerplate"
}
variable "ecs_schedule_expression" {
type = string
description = "The schedule expression for automatic triggered. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions"
default = "rate(7 days)"
}
variable "ecs_enable_scheduling" {
type = bool
description = "Enable ECS scheduling with cloudwatch"
default = true
}
variable "ecs_task_role_policies" {
type = list(string)
description = "List of policy ARNs to attached to the task role"
default = []
}
variable "ecs_execution_role_policies" {
type = list(string)
description = "List of policy ARNs to attached to the execution role"
default = []
}
/*
// EKS variables
*/
variable "eks_cluster_name" {
type = string
description = "Name of your Kubernetes cluster"
default = "kubernetes-cluster"
}
variable "eks_instance_type" {
type = string
description = "Size of your cluster nodes"
default = "m5.large"
}
variable "eks_asg_min_size" {
type = number
description = "Min node count"
default = 1
}
variable "eks_asg_max_size" {
type = number
description = "Max node count"
default = 1
}
/*
// ElastiCache variables
*/
variable "redis_name" {
type = string
description = "Name of the application"
default = "redis-name"
}
variable "redis_availability_zones" {
type = list(string)
description = "Availability zone IDs"
default = ["us-east-1a"]
}
variable "redis_zone_id" {
type = string
description = "Route53 DNS Zone ID"
default = ""
}
variable "redis_cluster_size" {
type = number
description = "Number of nodes in cluster. *Ignored when cluster_mode_enabled == true*"
default = 1
}
variable "redis_cluster_mode_enabled" {
type = bool
description = "Flag to enable/disable creation of a native redis cluster. automatic_failover_enabled must be set to true. Only 1 cluster_mode block is allowed"
default = false
}
variable "redis_cluster_mode_num_node_groups" {
type = number
description = "Number of node groups (shards) for this Redis replication group. Changing this number will trigger an online resizing operation before other settings modifications"
default = 1
}
variable "redis_cluster_mode_replicas_per_node_group" {
type = number
description = "Number of replica nodes in each node group. Valid values are 0 to 5. Changing this number will force a new resource"
default = 1
}
variable "redis_instance_type" {
type = string
description = "Elastic cache instance type"
default = "cache.t2.micro"
}
variable "redis_engine_version" {
type = string
description = "Redis engine version"
default = "4.0.10"
}
variable "redis_family" {
type = string
description = "Redis family"
default = "redis4.0"
}
variable "redis_at_rest_encryption_enabled" {
type = bool
description = "Enable encryption at rest"
default = false
}
variable "redis_transit_encryption_enabled" {
type = bool
description = "Enable TLS"
default = true
}
variable "redis_allowed_cidr_blocks" {
type = list(string)
description = "List of CIDR blocks that are allowed ingress to the cluster's Security Group created in the module"
default = []
}
variable "redis_attributes" {
type = list(string)
description = "Additional attributes (_e.g._ '1')"
default = []
}
variable "redis_auth_token" {
type = string
description = "Auth token for password protecting redis, transit_encryption_enabled must be set to true. Password must be longer than 16 chars"
default = "123456789ABCDEFG"
}
variable "redis_dns_subdomain" {
type = string
description = "The subdomain to use for the CNAME record. If not provided then the CNAME record will use var.name."
default = "d"
}
variable "elasticache_subnet_group_name" {
type = string
description = "Subnet group name for the ElastiCache instance"
default = "subnet-group"
}
variable "redis_enabled" {
type = bool
description = "Set to false to prevent the module from creating any resources"
default = true
}
variable "redis_port" {
type = number
description = "Redis port"
default = 6379
}
variable "redis_replication_group_id" {
type = string
description = "Replication group ID with the following constraints: A name must contain from 1 to 20 alphanumeric characters or hyphens. The first character must be a letter. A name cannot end with a hyphen or contain two consecutive hyphens."
default = "replication-group"
}
variable "redis_use_existing_security_groups" {
type = bool
description = "Flag to enable/disable creation of Security Group in the module. Set to true to disable Security Group creation and provide a list of existing security Group IDs in existing_security_groups to place the cluster into"
default = false
}
/*
// ElasticSearch variables
*/
variable "es_name" {
type = string
description = "Elasticsearch resource name."
default = "elasticsearch"
}
variable "es_dns_zone_id" {
type = string
description = "DNS zone ID to add hostname records."
default = ""
}
variable "es_zone_awareness" {
type = bool
description = "Enabled zone awareness or not."
default = false
}
variable "es_version" {
type = string
description = "Version of the elasticsearch to use."
default = "7.4"
}
variable "es_instance_type" {
type = string
description = "Instance type for elasticsearch."
default = "t2.small.elasticsearch"
}
variable "es_volume_size" {
type = number
description = "Volume size in GB."
default = 10
}
variable "es_subdomain" {
type = string
description = "ES subdomain name."
default = ""
}
variable "es_hostname_enabled" {
type = bool
description = "Whether to enable creating a DNS hostname from DNS Zone ID for ES."
default = false
}
variable "es_iam_allowed_role_arns" {
type = list(string)
description = "Authorized role arns to access elasticsearch."
default = []
}
variable "es_iam_allowed_actions" {
type = list(string)
description = "Authorized actions for iam roles."
default = []
}
variable "es_encrypt_at_rest" {
type = bool
description = "Whether to activate encryption at rest."
default = false
}
variable "es_kibana_subdomain" {
type = string
description = "Kibana subdomain name."
default = ""
}
variable "es_kibana_hostname_enabled" {
type = bool
description = "Whether to enable creating a DNS hostname from DNS Zone ID for Kibana."
default = false
}
/*
// Gitlab Runner variables
*/
variable "gitlab_public_ssh_key_file" {
type = string
description = "Path to the local public ssh key file."
}
variable "gitlab_aws_zone" {
type = string
description = "Deprecated. Will be removed in the next major release."
default = "us-east-1a"
}
variable "gitlab_environment" {
type = string
description = "A name that identifies the environment, used as prefix and for tagging."
default = "dev"
}
variable "gitlab_runners_name" {
type = string
description = "Name of the runner, will be used in the runner config.toml."
default = "gitlab-test"
}
variable "gitlab_runners_url" {
type = string
description = "URL of the GitLab instance to connect to."
default = ""
}
variable "gitlab_agent_tags" {
type = map(string)
description = "Map of tags that will be added to agent EC2 instances."
default = {}
}
variable "gitlab_cache_bucket" {
type = map
description = "Configuration to control the creation of the cache bucket. By default the bucket will be created and used as shared cache. To use the same cache across multiple runners disable the creation of the cache and provide a policy and bucket name. See the public runner example for more details."
default = {
"bucket" : "",
"create" : true,
"policy" : ""
}
}
variable "gitlab_cache_bucket_name_include_account_id" {
type = bool
description = "Boolean to add current account ID to cache bucket name."
default = true
}
variable "gitlab_cache_bucket_prefix" {
type = string
description = "Prefix for s3 cache bucket name."
default = ""
}
variable "gitlab_cache_bucket_versioning" {
type = bool
description = "Boolean used to enable versioning on the cache bucket, false by default."
default = false
}
variable "gitlab_cache_expiration_days" {
type = number
description = "Number of days before cache objects expires."
default = 1
}
variable "gitlab_cache_shared" {
type = bool
description = "Enables cache sharing between runners, false by default."
default = false
}
variable "gitlab_cloudwatch_retention_logs" {
type = number
description = "Retention for cloudwatch logs. Defaults to unlimited"
default = 0
}
variable "gitlab_cloudwatch_logging" {
type = bool
description = "Boolean used to enable or disable the CloudWatch logging."
default = true
}
variable "gitlab_docker_download_url" {
type = string
description = "Full url pointing to a linux x64 distribution of docker machine. Once set docker_machine_version will be ingored. For example the GitLab version, https://gitlab-docker-machine-downloads.s3.amazonaws.com/v0.16.2-gitlab.2/docker-machine."
default = ""
}
variable "gitlab_docker_instance_type" {
type = string
description = "Instance type used for the instances hosting docker-machine."
default = "m5.large"
}
variable "gitlab_docker_options" {
type = list(string)
description = "List of additional options for the docker machine config. Each element of this list must be a key=value pair. E.g. '[\"amazonec2-zone=a\"]'"
default = []
}
variable "gitlab_docker_role_json" {
type = string
description = "Docker machine runner instance override policy, expected to be in JSON format."
default = ""
}
variable "gitlab_docker_spot_price_bid" {
type = string
description = "Spot price bid."
default = "0.06"
}
variable "gitlab_docker_version" {
type = string
description = "Version of docker-machine. The version will be ingored once docker_machine_download_url is set."
default = "0.16.2"
}
variable "gitlab_enable_docker_ssm_access" {
type = bool
description = "Add IAM policies to the docker-machine instances to connect via the Session Manager."
default = false
}
variable "gitlab_enable_eip" {
type = bool
description = "Enable the assignment of an EIP to the gitlab runner instance"
default = false
}
variable "gitlab_enable_ssh_access" {
type = bool
description = "Enables SSH Access to the gitlab runner instance."
default = false
}
variable "gitlab_enable_kms" {
type = bool
description = "Let the module manage a KMS key, logs will be encrypted via KMS. Be-aware of the costs of an custom key."
default = false
}
variable "gitlab_enable_manage_token" {
type = bool
description = "Boolean to enable the management of the GitLab token in SSM. If true the token will be stored in SSM, which means the SSM property is a terraform managed resource. If false the Gitlab token will be stored in the SSM by the user-data script during creation of the the instance. However the SSM parameter is not managed by terraform and will remain in SSM after a terraform destroy."
default = true
}
variable "gitlab_enable_ping" {
type = bool
description = "Allow ICMP Ping to the ec2 instances."
default = false
}
variable "gitlab_enable_runner_ssm_access" {
type = bool
description = "Add IAM policies to the runner agent instance to connect via the Session Manager."
default = false
}
variable "gitlab_enable_runner_user_data_log" {
type = bool
description = "Enable bash xtrace for the user data script that creates the EC2 instance for the runner agent. Be aware this could log sensitive data such as you GitLab runner token."
default = false
}
variable "gitlab_enable_schedule" {
type = bool
description = "Flag used to enable/disable auto scaling group schedule for the runner instance."
default = false
}
variable "gitlab_enable_asg_recreation" {
type = bool
description = "Enable automatic redeployment of the Runner ASG when the Launch Configs change."
default = true
}
variable "gitlab_allow_iam_service_linked_role_creation" {
type = bool
description = "Boolean used to control attaching the policy to a runner instance to create service linked roles."
default = false
}
variable "gitlab_ami_filter" {
type = map(list(string))
description = "List of maps used to create the AMI filter for the Gitlab runner agent AMI. Must resolve to an Amazon Linux 1 or 2 image."
default = {
"name" : [
"ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*"
]
}
}
variable "gitlab_ami_owners" {
type = list(string)
description = "The list of owners used to select the AMI of Gitlab runner agent instances."
default = [
"099720109477"
]
}
variable "gitlab_arn_format" {
type = string
description = "ARN format to be used. May be changed to support deployment in GovCloud/China regions."
default = ""
}
variable "gitlab_runner_token" {
type = string
description = "The registration token given by gitlab for runner"
default = ""
}
variable "gitlab_runner_description" {
type = string
description = "Description of the runner"
default = "Basic description"
}
/*
// GuardDuty variables
*/
/*
// Lambda variables
*/
variable "lambda_name" {
type = string
description = "Name of the lambda"
default = ""
}
variable "lambda_desc" {
type = string
description = "Description of the lambda"
default = ""
}
variable "lambda_handler" {
type = string
description = "Lambda Function entry point in your code"
default = ""
}
# See for available runtimes: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
variable "lambda_runtime" {
type = string
description = "Lambda Function runtime"
default = ""
}
variable "lambda_publish" {
type = bool
description = "Whether to publish creation/change as new Lambda Function Version."
default = false
}
variable "lambda_at_edge" {
type = bool
description = "Set this to true if using Lambda@Edge, to enable publishing, limit the timeout, and allow edgelambda.amazonaws.com to invoke the function"
default = false
}
variable "lambda_source" {
type = any
description = "The absolute path to a local file or directory containing your Lambda source code"
default = null
}
variable "lambda_s3_store" {
type = bool
description = "Whether to store produced artifacts on S3 or locally."
default = false
}
variable "lambda_s3_name" {
type = string
description = "S3 bucket to store artifacts"
default = null
}
variable "lambda_create_package" {
type = bool
description = "Controls whether Lambda package should be created"
default = true
}
variable "lambda_local_package" {
type = string
description = "The absolute path to an existing zip-file to use"
default = null
}
variable "api_gateway_arn" {
type = string
description = "APIGateway to allow APIGatewayAny to be triggered by the lambda"
default = null
}
variable "api_gateway_source_arn" {
type = string
description = "APIGateway arn to allow APIGatewayDevPost to be triggered by the lambda"
default = null
}
variable "lambda_principal" {
type = string
description = "Principal of the lambda"
default = null
}
variable "lambda_rule_source_arn" {
type = string
description = "ARN of the rule"
default = null
}
variable "lambda_s3_bucket" {
type = string
description = "S3 Bucket destination of the lambda"
default = null
}
variable "lambda_s3_source" {
type = string
description = "The absolute path to a local file or directory containing your Lambda source code"
default = null
}
variable "lambda_s3layer" {
type = bool
description = "Controls whether Lambda Layer resource should be created"
default = null
}
variable "lambda_s3layer_name" {
type = string
description = "Name of Lambda Layer to create"
default = ""
}
variable "lambda_s3layer_desc" {
type = string
description = "Description of your Lambda Function (or Layer)"
default = ""
}
variable "lambda_s3layer_compatible_runtimes" {
type = list(string)
description = "A list of Runtimes this layer is compatible with. Up to 5 runtimes can be specified."
default = null
}
variable "lambda_s3layer_source" {
type = any
description = "The absolute path to a local file or directory containing your Lambda source code (or Layer)"
default = null
}
variable "lambda_s3layer_store" {
type = bool
description = "Whether to store produced artifacts on S3 or locally."