ecs-service-blue-green-deployment

hendrixroa/ecs-service-blue-green-deployment/aws

Terraform Module HCL AWS

Deploy your containers to AWS ECS with minimal configurations.

Install
module "ecs-service-blue-green-deployment" {
source = "hendrixroa/ecs-service-blue-green-deployment/aws"
version = "2.2.5"
}
plain text: /constructs/tfmod-hendrixroa-ecs-service-blue-green-deployment-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

ECS blue green deployments with AWS Codedeploy This module deploy your containers to AWS ECS with minimal configurations. Main features: 1. Create task definition 1. Create ecs service 1. Log stream to elasticsearch domain 1. Notify via sns configuration to Lambda function 1. Get the commit message to show on sns notification. TODO - Improve readme.

Inputs (32)
NameTypeDescriptionDefault
portstringPort number exposed by container required
ecr_image_urlstringECR docker image required
sns_topic_arnstringSns topic to trigger status into slack channel required
environment_liststringEnvironment variables in map-list format. eg: [{ name='foo', value='bar' }] required
max_scalestringMaximun number of task scaling3
log_levelstringApp log level"info"
health_check_pathstring"/health"
subnetslistPrivate subnets from VPC[]
memorystringNumber of memory for container2048
vpc_idstringVPC ID for create target group resources""
cpu_unitstringNumber of cpu units for container1024
clusterstringCluster used in ecs""
environmentlistEnvironment variables for ecs task[]
disable_autoscalingstringFlag to disable autoscaling servicefalse
regionstringAWS region"us-east-1"
use_cloudwatch_logsstringfalse
namestringName of service""
public_ipstringFlag to set auto assign public ipfalse
port_teststringTest port for codedeploy task rerouting traffic""
role_servicestringRole for execution service""
roleArnstringRole Iam for task def""
service_role_codedeploystringRole for ecs codedeploy""
min_scalestringMinimun number of task scaling1
es_urlstringElasticsearch url"disabled"
Outputs (3)
codedeploy_group_id — Codedeploy group id
ecs_service_id — ID of service created
ecs_task_arn — ARN of ecs task
Resources (9)
aws_appautoscaling_policyaws_appautoscaling_targetaws_cloudwatch_log_groupaws_codedeploy_appaws_codedeploy_deployment_groupaws_ecs_serviceaws_ecs_task_definitionaws_lb_listeneraws_lb_target_group
Topics & Tags
ecsawsdocker
Details
FrameworkTerraform Module
LanguageHCL
Version2.2.5
Cloud AWS
★ Stars14
Forks15
Total downloads7.1k
Inputs32
Outputs3
Resources9
LicenseNOASSERTION
Namespacehendrixroa
Updated