Git Product home page Git Product logo

terraform-aws-ecs-scheduled-task's Introduction

Terraform AWS ECS Scheduled Task

A Terraform module to create a scheduled task in AWS ECS

Usage

module "scheduled_task" {
  source  = "github.com/dxw/terraform-aws-ecs-scheduled-task"
  version = "1.2"

  name                  = "my_awesome_task"
  environment           = "staging"
  container_definitions = "${file(./path/to/container-definitions.json)}"
  schedule_expression   = "cron(0 * * * ? 0)"
  cluster_arn           = "my_awesome_cluster"
  memory                = "512"
  cpu                   = "512"
}

Configuration

The following variables can be configured:

Required

name

  • Description: Unique name for resources
  • Default: none

environment

  • Description: Environment - appended to ${var.name} for resources
  • Default: none

container_definitions

  • Description: Task container defintions. See AWS docs
  • Default: none

schedule_expression

  • Description: Schedule expression ( cron() or rate()) for when to run task. See AWS docs
  • Default: none

cluster_arn

  • Description: ARN of cluster on which to run task
  • Default: none

cpu

  • Description: The number of cpu units used by the task
  • Default: none

memory

  • Description: The amount (in MiB) of memory used by the task
  • Default: none

Optional

network_mode

  • Description: Task network mode
  • Default: bridge

Outputs

The following outputs are exported:

scheduled_task_ecs_execution_role_id

  • Description: Scheduled Task ECS Role ID

scheduled_task_ecs_role_id

  • Description: Scheduled Task ECS Role ID

scheduled_task_cloudwatch_role_id

  • Description: Scheduled Task CloudWatch Role ID

scheduled_task_arn

  • Description: Scheduled Task ARN

terraform-aws-ecs-scheduled-task's People

Contributors

adrianmsmith avatar ishidall avatar stretch96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.