aws-fargate
Adaptavist/aws-fargate/module
AWS Fargate module This module creates a set of AWS resources: - AWS ECS Fargate Service - AWS Security group for the Fargate Service - A set of monitoring resources including Slack notifications - A set of autoscaling resources - If autoscaling isn't enabled, desires count will match min and max count Autoscaling The autoscaling is triggered by a set of cloudwatch alarms that monitor CPU and memory. Monitoring period and thresholds for each alarm are configurable. Autoscaling resources have been configured using Cloudposse ecs-cloudwatch-autoscaling module Both scaling up and down are configured to make adjustments by adding or removing a single tasks. Scaling-up cool down period is 1 minute while scaling-down cool down period is 5 minutes. Inputs | Name | Description | Type | Default | R
| Name | Type | Description | Default |
|---|---|---|---|
| stage | string | Deployment stage i.e. environment name | required |
| region | string | AWS Region the Fargate service is deployed to | required |
| vpc_id | string | VPC Id | required |
| ecs_cluster_arn | string | ECS Cluster ARN | required |
| monitoring_config | list(object({ load_balance | required | |
| subnet_ids | list(string) | A list of subnet ids the fargate service will be deployed to | required |
| task_definition | string | The family and revision (family:revision) or full ARN of the task definition tha | required |
| ecs_cluster_name | string | Name of the ECS cluster | required |
| namespace | string | required | |
| desired_count | number | desired number of container instances running | required |
| max_count | number | Maximum number of tasks in the service, used only when autoscaling is enabled | 1 |
| cpu_utilization_low_threshold | number | Maximum CPUUtilization threshold, if breached will scale down | 20 |
| target_group_arns | list(string) | A list of target group ARNs | [] |
| availability_zone_rebalancing | string | ENABLED or DISABLED - whether ECS should keep instances balanced between AZs, if | "DISABLED" |
| health_check_grace_period | number | Number of seconds that ECS service scheduler should ignore unhealthy ELB target/ | 0 |
| monit_target_response_time_evaluation_period | string | Evaluation period for target response time alarm | "2" |
| port | number | The port the service is available from | 5060 |
| memory_utilization_low_threshold | number | Maximum MemoryUtilization threshold, if breached will scale down | 20 |
| create_success_responses_alarm | bool | Set to true if success responses alarm should be created | false |
| alarm_data_missing_action | string | Missing data action for success responses alarm. Possible values: missing or bre | "missing" |
| enable_slack_notifications | bool | Indicates if slack notifications should be enabled or not. If true, slack_webhoo | false |
| memory_utilization_high_alarm_threshold | number | The threshold to alarm at when memory utilization is high, if not provided, the | null |
| sg_egress_cidr_blocks | list(string) | List of egress CIDR blocks that will be applied to the created Fargate service | [
"0.0.0.0/0"
] |
| ingress_sg_list | list(string) | List of ingress security groups that will be applied to the created Fargate serv | [] |
| slack_webhook_url | string | Slack webhook URL for Cloudwatch alarm notifications | "" |
| min_count | number | Minimum number of tasks in the service, used only when autoscaling is enabled | 1 |
| cpu_utilization_high_alarm_threshold | number | The threshold to alarm at when cpu utilization is high, if not provided, the cpu | null |
| name | string | Name of the fargate instance | "fargate" |
| monitoring_env | string | Environment value for monitoring module (alarm creation). If null, var.stage is | null |
| wait_for_steady_state | bool | Terraform will wait for the service to reach a steady state (like aws ecs wait s | false |
| … and 10 more inputs | |||
sns_slack_notification_topic_arnfargate_service_namesecurity_group_idsns_alarm_topic_arn