All Projects → terraform-aws-modules → Terraform Aws Ecs

terraform-aws-modules / Terraform Aws Ecs

Licence: other
Terraform module which creates AWS ECS resources

Projects that are alternatives of or similar to Terraform Aws Ecs

Terraform Ecs Fargate
A Terraform template used for provisioning web application stacks on AWS ECS Fargate
Stars: ✭ 293 (+44.33%)
Mutual labels:  aws, ecs, hcl
Terraform Aws Alb
Terraform module to provision a standard ALB for HTTP/HTTP traffic
Stars: ✭ 53 (-73.89%)
Mutual labels:  aws, ecs, hcl
Infrastructure As Code Talk
Sample code for the talk "Infrastructure-as-code: running microservices on AWS with Docker, ECS, and Terraform"
Stars: ✭ 520 (+156.16%)
Mutual labels:  aws, ecs, hcl
Ecs Deploy
Powerful CLI tool to simplify Amazon ECS deployments, rollbacks & scaling
Stars: ✭ 541 (+166.5%)
Mutual labels:  aws, ecs, aws-ecs
Ecs Pipeline
☁️ 🐳 ⚡️ 🚀 Create environment and deployment pipelines to ECS Fargate with CodePipeline, CodeBuild and Github using Terraform
Stars: ✭ 85 (-58.13%)
Mutual labels:  aws, ecs, hcl
Terraform Aws Ecs Container Definition
Terraform module to generate well-formed JSON documents (container definitions) that are passed to the aws_ecs_task_definition Terraform resource
Stars: ✭ 217 (+6.9%)
Mutual labels:  aws, ecs, hcl
Terraform Aws Ecs Fargate
Terraform module which creates ECS Fargate resources on AWS.
Stars: ✭ 35 (-82.76%)
Mutual labels:  aws, ecs, hcl
Terraform Fargate Example
Example repository to run an ECS cluster on Fargate
Stars: ✭ 206 (+1.48%)
Mutual labels:  aws, ecs, hcl
Terraform Aws Ecs Codepipeline
Terraform Module for CI/CD with AWS Code Pipeline and Code Build for ECS https://cloudposse.com/
Stars: ✭ 85 (-58.13%)
Mutual labels:  aws, ecs, hcl
Curso Aws Com Terraform
🎦 🇧🇷 Arquivos do curso "DevOps: AWS com Terraform Automatizando sua infraestrutura" publicado na Udemy. Você pode me ajudar comprando o curso utilizando o link abaixo.
Stars: ✭ 62 (-69.46%)
Mutual labels:  aws, aws-ecs, hcl
Terraform Ecs Autoscale Alb
ECS cluster with instance and service autoscaling configured and running behind an ALB with path based routing set up
Stars: ✭ 60 (-70.44%)
Mutual labels:  aws, ecs, hcl
Ecs Exporter
Export AWS ECS cluster metrics to Prometheus
Stars: ✭ 127 (-37.44%)
Mutual labels:  aws, ecs, aws-ecs
Aws Ecs Airflow
Run Airflow in AWS ECS(Elastic Container Service) using Fargate tasks
Stars: ✭ 107 (-47.29%)
Mutual labels:  aws, ecs, hcl
Multi Env Deploy
Complete example of deploying complex web apps to AWS using Terraform, Ansible, and Packer
Stars: ✭ 132 (-34.98%)
Mutual labels:  aws, aws-ecs, hcl
Kubify
Terraform Template to Setup a Kubernetes Cluster on OpenStack/AWS/Azure
Stars: ✭ 142 (-30.05%)
Mutual labels:  aws, hcl
Example Pragmatic Terraform On Aws
技術書典6で頒布した『Pragmatic Terraform on AWS 』のサンプルコードを公開しています
Stars: ✭ 140 (-31.03%)
Mutual labels:  aws, hcl
Ladder
A general purpose extensible autoscaler for the cloud
Stars: ✭ 143 (-29.56%)
Mutual labels:  aws, ecs
Terraform Aws Labs
Terraform template for AWS provider ☁️
Stars: ✭ 146 (-28.08%)
Mutual labels:  aws, hcl
Terraform Aws Cicd
Terraform Module for CI/CD with AWS Code Pipeline and Code Build
Stars: ✭ 138 (-32.02%)
Mutual labels:  aws, hcl
Terraform Aws Vpc
Terraform module which creates VPC resources on AWS
Stars: ✭ 2,043 (+906.4%)
Mutual labels:  aws, hcl

AWS Elastic Container Service (ECS) Terraform module

Terraform module which creates ECS resources on AWS.

This module focuses purely on ECS and nothing else. Therefore only these resources can be created with this module:

However, having said the above to have a proper ECS cluster up and running multiple resources are needed. In most cases creating these resources is heavily opinionated and or context-bound. That is why this module does not create these resources. But you still need them to have a production ready environment. Therefore the example area shows how to create everything needed for a production environment.

Terraform versions

Terraform 0.12. Pin module version to ~> v2.0. Submit pull-requests to master branch.

Terraform 0.11. Pin module version to ~> v1.0. Submit pull-requests to terraform011 branch.

Usage

module "ecs" {
  source = "terraform-aws-modules/ecs/aws"

  name = "my-ecs"

  container_insights = true

  capacity_providers = ["FARGATE", "FARGATE_SPOT"]

  default_capacity_provider_strategy = [
    {
      capacity_provider = "FARGATE_SPOT"
    }
  ]

  tags = {
    Environment = "Development"
  }
}

Conditional creation

Sometimes you need to have a way to create ECS resources conditionally but Terraform does not allow to use count inside module block, so the solution is to specify argument create_ecs.

# ECS cluster will not be created
module "ecs" {
  source  = "terraform-aws-modules/ecs/aws"
  version = "~> 2.0"

  create_ecs = false
  # ... omitted
}

Examples

Requirements

Name Version
terraform >= 0.12.26
aws >= 2.48

Providers

Name Version
aws >= 2.48

Modules

No Modules.

Resources

Name
aws_ecs_cluster

Inputs

Name Description Type Default Required
capacity_providers List of short names of one or more capacity providers to associate with the cluster. Valid values also include FARGATE and FARGATE_SPOT. list(string) [] no
container_insights Controls if ECS Cluster has container insights enabled bool false no
create_ecs Controls if ECS should be created bool true no
default_capacity_provider_strategy The capacity provider strategy to use by default for the cluster. Can be one or more. list(map(any)) [] no
name Name to be used on all the resources as identifier, also the name of the ECS cluster string null no
tags A map of tags to add to ECS Cluster map(string) {} no

Outputs

Name Description
this_ecs_cluster_arn ARN of the ECS Cluster
this_ecs_cluster_id ID of the ECS Cluster
this_ecs_cluster_name The name of the ECS cluster

Authors

Module managed by Armin Coralic, Anton Babenko and other awesome contributors.

License

Apache 2 Licensed. See LICENSE for full details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].