|
| 1 | +################################################################################ |
| 2 | +# ECS Cluster |
| 3 | +################################################################################ |
| 4 | + |
| 5 | +variable "cluster_name" { |
| 6 | + description = "The name of the ECS cluster." |
| 7 | + type = string |
| 8 | +} |
| 9 | + |
| 10 | +variable "cluster_setting" { |
| 11 | + description = "The settings to use when creating the cluster." |
| 12 | + type = list(object({ |
| 13 | + name = string |
| 14 | + value = string |
| 15 | + })) |
| 16 | +} |
| 17 | + |
| 18 | +variable "cluster_tags" { |
| 19 | + description = "A map of tags to assign to the cluster." |
| 20 | + type = map(string) |
| 21 | +} |
| 22 | + |
| 23 | +################################################################################ |
| 24 | +# Autoscaling Group |
| 25 | +################################################################################ |
| 26 | + |
| 27 | +variable "asg_name" { |
| 28 | + description = "The name of the Auto Scaling Group." |
| 29 | + type = string |
| 30 | +} |
| 31 | + |
| 32 | +variable "asg_vpc_zone_identifier" { |
| 33 | + description = "A list of subnet IDs to launch resources in." |
| 34 | + type = list(string) |
| 35 | +} |
| 36 | + |
| 37 | +variable "asg_desired_capacity" { |
| 38 | + description = "The number of Amazon EC2 instances that should be running in the Auto Scaling Group." |
| 39 | + type = number |
| 40 | +} |
| 41 | + |
| 42 | +variable "asg_min_size" { |
| 43 | + description = "The minimum size of the Auto Scaling Group." |
| 44 | + type = number |
| 45 | +} |
| 46 | + |
| 47 | +variable "asg_max_size" { |
| 48 | + description = "The maximum size of the Auto Scaling Group." |
| 49 | + type = number |
| 50 | +} |
| 51 | + |
| 52 | +variable "asg_instances_tags" { |
| 53 | + description = "A map of tags to assign to the instances within the Auto Scaling Group." |
| 54 | + type = map(string) |
| 55 | +} |
| 56 | + |
| 57 | +variable "asg_tags" { |
| 58 | + description = "A map of tags to assign to the Auto Scaling Group." |
| 59 | + type = map(string) |
| 60 | +} |
| 61 | + |
| 62 | +variable "asg_create_launch_template" { |
| 63 | + description = "Whether to create a launch template." |
| 64 | + type = bool |
| 65 | +} |
| 66 | + |
| 67 | +variable "asg_launch_template" { |
| 68 | + description = "The configuration of the launch template." |
| 69 | + type = object({ |
| 70 | + image_id = string |
| 71 | + instance_type = string |
| 72 | + key_name = string |
| 73 | + security_group_ids = list(string) |
| 74 | + }) |
| 75 | +} |
| 76 | + |
| 77 | +variable "asg_launch_template_version" { |
| 78 | + description = "The version of the launch template to use." |
| 79 | + type = string |
| 80 | +} |
| 81 | + |
| 82 | +variable "asg_iam_role_name" { |
| 83 | + description = "The name of the IAM role for the Auto Scaling Group." |
| 84 | + type = string |
| 85 | +} |
| 86 | + |
| 87 | +variable "asg_iam_role_tags" { |
| 88 | + description = "A map of tags to assign to the IAM role." |
| 89 | + type = map(string) |
| 90 | +} |
| 91 | + |
| 92 | +variable "asg_iam_instance_profile_name" { |
| 93 | + description = "The name of the IAM instance profile for the Auto Scaling Group." |
| 94 | + type = string |
| 95 | +} |
| 96 | + |
| 97 | +variable "asg_iam_instance_profile_tags" { |
| 98 | + description = "A map of tags to assign to the IAM instance profile." |
| 99 | + type = map(string) |
| 100 | +} |
0 commit comments