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"
}
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)
| Name | Type | Description | Default |
|---|---|---|---|
| port | string | Port number exposed by container | required |
| ecr_image_url | string | ECR docker image | required |
| sns_topic_arn | string | Sns topic to trigger status into slack channel | required |
| environment_list | string | Environment variables in map-list format. eg: [{ name='foo', value='bar' }] | required |
| max_scale | string | Maximun number of task scaling | 3 |
| log_level | string | App log level | "info" |
| health_check_path | string | "/health" | |
| subnets | list | Private subnets from VPC | [] |
| memory | string | Number of memory for container | 2048 |
| vpc_id | string | VPC ID for create target group resources | "" |
| cpu_unit | string | Number of cpu units for container | 1024 |
| cluster | string | Cluster used in ecs | "" |
| environment | list | Environment variables for ecs task | [] |
| disable_autoscaling | string | Flag to disable autoscaling service | false |
| region | string | AWS region | "us-east-1" |
| use_cloudwatch_logs | string | false | |
| name | string | Name of service | "" |
| public_ip | string | Flag to set auto assign public ip | false |
| port_test | string | Test port for codedeploy task rerouting traffic | "" |
| role_service | string | Role for execution service | "" |
| roleArn | string | Role Iam for task def | "" |
| service_role_codedeploy | string | Role for ecs codedeploy | "" |
| min_scale | string | Minimun number of task scaling | 1 |
| es_url | string | Elasticsearch url | "disabled" |
Outputs (3)
codedeploy_group_id — Codedeploy group idecs_service_id — ID of service createdecs_task_arn — ARN of ecs taskResources (9)
aws_appautoscaling_policyaws_appautoscaling_targetaws_cloudwatch_log_groupaws_codedeploy_appaws_codedeploy_deployment_groupaws_ecs_serviceaws_ecs_task_definitionaws_lb_listeneraws_lb_target_group
Details
FrameworkTerraform Module
LanguageHCL
Version2.2.5
Cloud AWS
★ Stars14
Forks15
Total downloads7.1k
Inputs32
Outputs3
Resources9
LicenseNOASSERTION
Namespacehendrixroa
Updated
Similar packages
next-js
Terraform module for building and deploying Next.js apps to AWS. Supports SSR (L
★ 1.5kaws
eks-cluster
Terraform module for provisioning an EKS cluster
★ 548aws
ecs-container-definition
Terraform module to generate well-formed JSON documents (container definitions)
★ 350ecs
tfstate-backend
Terraform module that provision an S3 bucket to store the terraform.tfstate file
★ 437aws