aws-fargate

Adaptavist/aws-fargate/module

Terraform Module HCL MODULE
Install
module "aws-fargate" {
source = "Adaptavist/aws-fargate/module"
version = "1.18.1"
}
plain text: /constructs/tfmod-adaptavist-aws-fargate-module/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (50)
NameTypeDescriptionDefault
stagestringDeployment stage i.e. environment name required
regionstringAWS Region the Fargate service is deployed to required
vpc_idstringVPC Id required
ecs_cluster_arnstringECS Cluster ARN required
monitoring_configlist(object({ load_balance required
subnet_idslist(string)A list of subnet ids the fargate service will be deployed to required
task_definitionstringThe family and revision (family:revision) or full ARN of the task definition tha required
ecs_cluster_namestringName of the ECS cluster required
namespacestring required
desired_countnumberdesired number of container instances running required
max_countnumberMaximum number of tasks in the service, used only when autoscaling is enabled1
cpu_utilization_low_thresholdnumberMaximum CPUUtilization threshold, if breached will scale down20
target_group_arnslist(string)A list of target group ARNs[]
availability_zone_rebalancingstringENABLED or DISABLED - whether ECS should keep instances balanced between AZs, if"DISABLED"
health_check_grace_periodnumberNumber of seconds that ECS service scheduler should ignore unhealthy ELB target/0
monit_target_response_time_evaluation_periodstringEvaluation period for target response time alarm"2"
portnumberThe port the service is available from5060
memory_utilization_low_thresholdnumberMaximum MemoryUtilization threshold, if breached will scale down20
create_success_responses_alarmboolSet to true if success responses alarm should be createdfalse
alarm_data_missing_actionstringMissing data action for success responses alarm. Possible values: missing or bre"missing"
enable_slack_notificationsboolIndicates if slack notifications should be enabled or not. If true, slack_webhoofalse
memory_utilization_high_alarm_thresholdnumberThe threshold to alarm at when memory utilization is high, if not provided, the null
sg_egress_cidr_blockslist(string)List of egress CIDR blocks that will be applied to the created Fargate service[ "0.0.0.0/0" ]
ingress_sg_listlist(string)List of ingress security groups that will be applied to the created Fargate serv[]
slack_webhook_urlstringSlack webhook URL for Cloudwatch alarm notifications""
min_countnumberMinimum number of tasks in the service, used only when autoscaling is enabled1
cpu_utilization_high_alarm_thresholdnumberThe threshold to alarm at when cpu utilization is high, if not provided, the cpunull
namestringName of the fargate instance"fargate"
monitoring_envstringEnvironment value for monitoring module (alarm creation). If null, var.stage is null
wait_for_steady_stateboolTerraform will wait for the service to reach a steady state (like aws ecs wait sfalse
… and 10 more inputs
Outputs (4)
sns_slack_notification_topic_arn
fargate_service_name
security_group_id
sns_alarm_topic_arn
Resources (3)
aws_ecs_serviceaws_security_groupaws_security_group_rule
Details
FrameworkTerraform Module
LanguageHCL
Version1.18.1
Cloud MODULE
★ Stars1
Forks4
Total downloads29.6k
Inputs50
Outputs4
Resources3
Submodules2
LicenseApache-2.0
NamespaceAdaptavist
Updated