All Projects → umotif-public → terraform-aws-ecs-fargate-task-definition

umotif-public / terraform-aws-ecs-fargate-task-definition

Licence: other
Terraform module to create AWS ECS Fargate Task Definition

Programming Languages

HCL
1544 projects
Makefile
30231 projects

Projects that are alternatives of or similar to terraform-aws-ecs-fargate-task-definition

terraform-aws-ecs-fargate-scheduled-task
AWS ECS Fargate Schedule Task Terraform Module
Stars: ✭ 25 (+25%)
Mutual labels:  ecs, terraform-module, ecs-fargate
terraform-aws-ecs-web-app
Terraform module that implements a web app on ECS and supports autoscaling, CI/CD, monitoring, ALB integration, and much more.
Stars: ✭ 175 (+775%)
Mutual labels:  ecs, terraform-module
terraform-aws-ecs-fargate-task-definition
AWS ECS Fargate Task Definition Terraform Module
Stars: ✭ 20 (+0%)
Mutual labels:  terraform-module, ecs-fargate
terraform-aws-ecs-fargate-service
AWS ECS Fargate Service Terraform Module
Stars: ✭ 52 (+160%)
Mutual labels:  terraform-module, ecs-fargate
terraform-aws-ecs-alb-service-task
Terraform module which implements an ECS service which exposes a web service via ALB.
Stars: ✭ 108 (+440%)
Mutual labels:  ecs, terraform-module
provose
Provose is a new way to manage your Amazon Web Services infrastructure.
Stars: ✭ 27 (+35%)
Mutual labels:  ecs, terraform-module
terraform-aws-ecs-cloudwatch-sns-alarms
Terraform module to create CloudWatch Alarms on ECS Service level metrics.
Stars: ✭ 23 (+15%)
Mutual labels:  ecs, terraform-module
terraform-aws-chatbot-slack-configuration
Module to enable Chatbot Slack channel configuration in Terraform
Stars: ✭ 31 (+55%)
Mutual labels:  terraform-module
terraform-ecs
Terraform ECS module
Stars: ✭ 15 (-25%)
Mutual labels:  ecs
terraform-aws-fargate
Terraform module to provision a Fargate-ready AWS infrastructure 🚀
Stars: ✭ 77 (+285%)
Mutual labels:  ecs
jenkins-ecs-deployment
Deploy docker containers to AWS ECS/ECR via Jenkins
Stars: ✭ 20 (+0%)
Mutual labels:  ecs
TinyECS
Tiny ECS is an easy to use Entity-Component-System framework that's designed specially for Unity3D.
Stars: ✭ 20 (+0%)
Mutual labels:  ecs
terraform-aws-msk-cluster
Terraform module which creates Msk Kafka Cluster on AWS
Stars: ✭ 26 (+30%)
Mutual labels:  terraform-module
ent-comp
A light, fast Entity Component System in JS
Stars: ✭ 25 (+25%)
Mutual labels:  ecs
terraform-fargate-tutorial
A minimal set of Terraform to create a Fargate service
Stars: ✭ 32 (+60%)
Mutual labels:  ecs
entitas-python
Entitas ECS implementation in Python.
Stars: ✭ 41 (+105%)
Mutual labels:  ecs
django-step-by-step
A Django + Vue reference project that focuses on developer tooling and CI/CD + IaC
Stars: ✭ 86 (+330%)
Mutual labels:  ecs
RavEngine
A fast, easy to use C++20 3D game library for modern computers
Stars: ✭ 122 (+510%)
Mutual labels:  ecs
terraform-aws-cognito-user-pool
Terraform module to create Amazon Cognito User Pools, configure its attributes and resources such as app clients, domain, resource servers. Amazon Cognito User Pools provide a secure user directory that scales to hundreds of millions of users.
Stars: ✭ 65 (+225%)
Mutual labels:  terraform-module
aws-ecs-orb
An orb that simplifies deployment to Amazon's Elastic Container Service (ECS). Supports both EC2 and Fargate launch types.
Stars: ✭ 48 (+140%)
Mutual labels:  ecs

GitHub release (latest SemVer)

terraform-aws-ecs-fargate-task-definition

Terraform module to create AWS ECS Fargate Task Definition.

Terraform versions

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

Usage

module "ecs-task-definition" {
  source = "umotif-public/ecs-fargate-task-definition/aws"
  version = "~> 2.0.0"

  enabled              = true
  name_prefix          = "test-container"
  task_container_image = "httpd:2.4"

  container_name      = "test-container-name"
  task_container_port = "80"
  task_host_port      = "80"

  task_definition_cpu    = "512"
  task_definition_memory = "1024"

  task_container_environment = {
    "ENVIRONEMNT" = "Test"
  }
}

Assumptions

Module is to be used with Terraform > 0.12.

Examples

Authors

Module managed by Marcin Cuber LinkedIn.

Requirements

Name Version
terraform >= 0.12.6
aws >= 2.68

Providers

Name Version
aws >= 2.68

Modules

No modules.

Resources

Name Type
aws_ecs_task_definition.task resource
aws_iam_role.execution resource
aws_iam_role.task resource
aws_iam_role_policy.log_agent resource
aws_iam_role_policy.read_repository_credentials resource
aws_iam_role_policy_attachment.ecs_task_execution_role_policy_attach resource
aws_iam_policy_document.assume_role_policy data source
aws_iam_policy_document.read_repository_credentials data source
aws_iam_policy_document.task_permissions data source
aws_kms_key.secretsmanager_key data source
aws_partition.current data source
aws_region.current data source

Inputs

Name Description Type Default Required
cloudwatch_log_group_name CloudWatch log group name required to enabled logDriver in container definitions for ecs task. string "" no
container_name Optional name for the container to be used instead of name_prefix. string "" no
create_repository_credentials_iam_policy Set to true if you are specifying repository_credentials variable, it will attach IAM policy with necessary permissions to task role. bool false no
enabled Whether to create the resources. Set to false to prevent the module from creating any resources bool true no
name_prefix A prefix used for naming resources. string n/a yes
placement_constraints (Optional) A set of placement constraints rules that are taken into consideration during task placement. Maximum number of placement_constraints is 10. This is a list of maps, where each map should contain "type" and "expression" list(any) [] no
proxy_configuration (Optional) The proxy configuration details for the App Mesh proxy. This is a list of maps, where each map should contain "container_name", "properties" and "type" list(any) [] no
repository_credentials name or ARN of a secrets manager secret (arn:aws:secretsmanager:region:aws_account_id㊙️secret_name) string "" no
repository_credentials_kms_key key id, key ARN, alias name or alias ARN of the key that encrypted the repository credentials string "alias/aws/secretsmanager" no
tags A map of tags (key-value pairs) passed to resources. map(string) {} no
task_container_command The command that is passed to the container. list(string) [] no
task_container_cpu Amount of CPU to reserve for the container. number null no
task_container_environment The environment variables to pass to a container. map(string) {} no
task_container_image The image used to start a container. string n/a yes
task_container_memory The hard limit (in MiB) of memory for the container. number null no
task_container_memory_reservation The soft limit (in MiB) of memory to reserve for the container. number null no
task_container_port The port number on the container that is bound to the user-specified or automatically assigned host port number 0 no
task_container_secrets The secrets variables to pass to a container. list(map(string)) null no
task_container_working_directory The working directory to run commands inside the container. string "" no
task_definition_cpu Amount of CPU to reserve for the task. number 256 no
task_definition_memory The soft limit (in MiB) of memory to reserve for the task. number 512 no
task_health_check An optional healthcheck definition for the task object({ command = list(string), interval = number, timeout = number, retries = number, startPeriod = number }) null no
task_host_port The port number on the container instance to reserve for your container. number 0 no
task_mount_points The mount points for data volumes in your container. Each object inside the list requires "sourceVolume", "containerPath" and "readOnly". For more information see https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html list(object({ sourceVolume = string, containerPath = string, readOnly = bool })) null no
task_start_timeout Time duration (in seconds) to wait before giving up on resolving dependencies for a container. If this parameter is not specified, the default value of 3 minutes is used (fargate). number null no
task_stop_timeout Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own. The max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used. number null no
volume (Optional) A set of volume blocks that containers in your task may use. This is a list of maps, where each map should contain "name", "host_path", "docker_volume_configuration" and "efs_volume_configuration". Full set of options can be found at https://www.terraform.io/docs/providers/aws/r/ecs_task_definition.html list [] no

Outputs

Name Description
container_port Port on which the container is listening.
execution_role_arn The Amazon Resource Name (ARN) of execution role.
execution_role_create_date The creation date of the IAM role.
execution_role_id The ID of the execution role.
execution_role_name The name of the execution service role.
execution_role_unique_id The stable and unique string identifying the role.
task_definition_arn Full ARN of the Task Definition (including both family and revision).
task_definition_family The family of the Task Definition.
task_definition_revision The revision of the task in a particular family.
task_role_arn The Amazon Resource Name (ARN) specifying the ECS service role.
task_role_create_date The creation date of the IAM role.
task_role_id The ID of the role.
task_role_name The name of the Fargate task service role.
task_role_unique_id The stable and unique string identifying the role.

License

See LICENSE for full details.

Pre-commit hooks

Install dependencies

MacOS

brew install pre-commit terraform-docs tflint

brew tap git-chglog/git-chglog
brew install git-chglog
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].