additional_security_group_ids |
Additional list of security groups that will be attached to the autoscaling group. |
list(string) |
[] |
no |
assign_public_ip |
Assign a public IP address to the ENI (Fargate launch type only). Valid values are true or false. Default false. |
bool |
false |
no |
associate_public_ip_address |
Associate a public IP address with an instance in a VPC. |
bool |
false |
no |
autoscaling_policies_enabled |
Whether to create aws_autoscaling_policy and aws_cloudwatch_metric_alarm resources to control Auto Scaling. |
bool |
false |
no |
base |
The number of tasks, at a minimum, to run on the specified capacity provider. |
number |
1 |
no |
cloudwatch_prefix |
The prefix of cloudwatch logs. |
string |
"" |
no |
container_log_group_name |
Log group name for the container. |
string |
"log-group" |
no |
container_name |
The name of the container to associate with the load balancer (as it appears in a container definition). |
string |
"" |
no |
container_port |
The port on the container to associate with the load balancer. |
number |
80 |
no |
cpu |
The number of cpu units used by the task. If the requires_compatibilities is FARGATE this field is required. |
number |
512 |
no |
delimiter |
Delimiter to be used between organization , environment , name and attributes . |
string |
"-" |
no |
deployment_maximum_percent |
The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. |
number |
200 |
no |
deployment_minimum_healthy_percent |
The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. |
number |
100 |
no |
desired_count |
The number of instances of the task definition to place and keep running. |
number |
0 |
no |
ebs_encryption |
Enables EBS encryption on the volume (Default: false). Cannot be used with snapshot_id. |
bool |
false |
no |
ebs_optimized |
If true, the launched EC2 instance will be EBS-optimized. |
bool |
true |
no |
ec2_awsvpc_enabled |
AWSVPC network mode is enabled or not. |
bool |
false |
no |
ec2_cluster_enabled |
Whether ec2 cluster is enabled or not. |
bool |
false |
no |
ec2_service_enabled |
Whether EC2 launch type is enabled. |
bool |
false |
no |
ec2_td_enabled |
Whether EC2 task definition is enabled. |
bool |
false |
no |
ecs_settings_enabled |
Whether ecs setting is enabled or not. |
string |
"" |
no |
enable_ecs_managed_tags |
Specifies whether to enable Amazon ECS managed tags for the tasks within the service. |
bool |
false |
no |
enabled |
Whether to create the resources. Set to false to prevent the module from creating any resources. |
bool |
false |
no |
environment |
Environment (e.g. prod , dev , staging ). |
string |
"" |
no |
fargate_capacity_provider_simple |
The name of the capacity provider. |
string |
"" |
no |
fargate_capacity_provider_spot |
The name of the capacity provider. |
string |
"" |
no |
fargate_cluster_cp |
The name of the capacity provider. |
list(string) |
[] |
no |
fargate_cluster_enabled |
Whether fargate cluster is enabled or not. |
bool |
false |
no |
fargate_service_enabled |
Whether fargate is enabled or not. |
bool |
false |
no |
fargate_td_enabled |
Whether fargate task definition is enabled. |
bool |
false |
no |
file_name |
File name for container definitions. |
string |
"" |
no |
health_check_grace_period_seconds |
Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. |
number |
360 |
no |
health_check_type |
Controls how health checking is done. Valid values are EC2 or ELB . |
string |
"EC2" |
no |
image_id |
The EC2 image ID to launch. |
string |
"" |
no |
instance_type |
Instance type to launch. |
string |
"t2.medium" |
no |
ipc_mode |
The IPC resource namespace to be used for the containers in the task The valid values are host, task, and none. (It does not support for fargate launch type). |
string |
"task" |
no |
key_name |
The SSH key name that should be used for the instance. |
string |
"" |
no |
kms_key_arn |
AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. encrypted must be set to true when this is set. |
string |
"" |
no |
label_order |
Label order, e.g. name ,application . |
list(any) |
[] |
no |
lb_security_group |
The LB security groups. |
string |
"" |
no |
lb_subnet |
The subnet associated with the load balancer. |
list(string) |
[] |
no |
listener_certificate_arn |
The ARN of the SSL server certificate. Exactly one certificate is required if the protocol is HTTPS. |
string |
"" |
no |
load_balancers |
A list of elastic load balancer names to add to the autoscaling group names. Only valid for classic load balancers. For ALBs, use target_group_arns instead. |
list(string) |
[] |
no |
managedby |
ManagedBy, eg 'CloudDrove'. |
string |
"[email protected]" |
no |
max_size |
The maximum size of the autoscale group. |
number |
3 |
no |
max_size_scaledown |
The maximum size for the Auto Scaling group. Default 0. Set to -1 if you don't want to change the minimum size at the scheduled time. |
number |
1 |
no |
memory |
The amount (in MiB) of memory used by the task. If the requires_compatibilities is FARGATE this field is required. |
number |
1024 |
no |
memory_reservation_high_threshold_percent |
The value against which the specified statistic is compared. |
number |
75 |
no |
memory_reservation_low_threshold_percent |
The value against which the specified statistic is compared. |
number |
25 |
no |
min_size |
The minimum size of the autoscale group. |
number |
0 |
no |
min_size_scaledown |
The minimum size for the Auto Scaling group. Default 0. Set to -1 if you don't want to change the minimum size at the scheduled time. |
number |
0 |
no |
name |
Name (e.g. app or cluster ). |
string |
"" |
no |
network_mode |
The Docker networking mode to use for the containers in the task. The valid values are none, bridge, awsvpc, and host. |
string |
"bridge" |
no |
pid_mode |
The process namespace to use for the containers in the task. The valid values are host and task. (It does not support for fargate launch type). |
string |
"task" |
no |
platform_version |
The platform version on which to run your service. |
string |
"LATEST" |
no |
propagate_tags |
Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are SERVICE and TASK_DEFINITION. |
string |
"SERVICE" |
no |
repository |
Terraform current module repo |
string |
"" |
no |
retention_in_days |
The retention of cloud watch logs. |
number |
30 |
no |
scale_down_desired |
The number of Amazon EC2 instances that should be running in the group. |
number |
0 |
no |
scale_up_desired |
The number of Amazon EC2 instances that should be running in the group. |
number |
0 |
no |
schedule_enabled |
AutoScaling Schedule resource |
bool |
false |
no |
scheduler_down |
What is the recurrency for scaling up operations ? |
string |
"0 19 * * MON-FRI" |
no |
scheduler_up |
What is the recurrency for scaling down operations ? |
string |
"0 6 * * MON-FRI" |
no |
scheduling_strategy |
The scheduling strategy to use for the service. The valid values are REPLICA and DAEMON. |
string |
"REPLICA" |
no |
spot_enabled |
Whether to create the spot instance. Set to false to prevent the module from creating any spot instances. |
bool |
false |
no |
spot_instance_type |
Sport instance type to launch. |
string |
"t2.medium" |
no |
spot_max_size |
The maximum size of the spot autoscale group. |
number |
3 |
no |
spot_max_size_scaledown |
The maximum size for the Auto Scaling group of spot instances. Default 0. Set to -1 if you don't want to change the minimum size at the scheduled time. |
number |
1 |
no |
spot_min_size |
The minimum size of the spot autoscale group. |
number |
0 |
no |
spot_min_size_scaledown |
The minimum size for the Auto Scaling group of spot instances. Default 0. Set to -1 if you don't want to change the minimum size at the scheduled time. |
number |
0 |
no |
spot_price |
The maximum hourly price you're willing to pay for the Spot Instances. |
number |
1 |
no |
spot_scale_down_desired |
The number of Amazon EC2 instances that should be running in the group. |
number |
0 |
no |
spot_scale_up_desired |
The number of Amazon EC2 instances that should be running in the group. |
number |
0 |
no |
spot_schedule_enabled |
AutoScaling Schedule resource for spot |
bool |
false |
no |
subnet_ids |
A list of subnet IDs to launch resources in. |
list(string) |
[] |
no |
target_group_arns |
A list of aws_alb_target_group ARNs, for use with Application Load Balancing. |
list(string) |
[] |
no |
target_type |
The target type for load balancer. |
string |
"" |
no |
task_role_arn |
The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services. |
string |
"" |
no |
type |
Type of deployment controller. Valid values: CODE_DEPLOY, ECS. Default: ECS. |
string |
"ECS" |
no |
volume_size |
The size of ebs volume. |
number |
50 |
no |
volume_type |
The type of volume. Can be standard , gp2 , or io1 . (Default: standard ). |
string |
"gp2" |
no |
vpc_id |
VPC ID for the EKS cluster. |
string |
"" |
no |
wait_for_capacity_timeout |
A maximum duration that Terraform should wait for ASG instances to be healthy before timing out. Setting this to '0' causes Terraform to skip all Capacity Waiting behavior. |
string |
"15m" |
no |
weight_simple |
The relative percentage of the total number of launched tasks that should use the specified capacity provider. |
number |
1 |
no |
weight_spot |
The relative percentage of the total number of launched tasks that should use the specified capacity provider. |
number |
1 |
no |