fargate-scheduled-task

baikonur-oss/fargate-scheduled-task/aws

Terraform Module HCL AWS ⏱ stale 4y 10mo

AWS Fargate Scheduled Task Terraform Module

Install

module "fargate-scheduled-task" {
source = "baikonur-oss/fargate-scheduled-task/aws"
version = "2.0.3"
}
⭐ Source on GitHub 📦 Registry page

README

AWS Fargate Scheduled Task Terraform Module Terraform module for scheduling Fargate tasks with CloudWatch Event Rules. !terraform v0.12.x Usage ``HCL module "fargate-scheduled-task" { source = "baikonur-oss/fargate-scheduled-task/aws" version = "v2.0.2" name = "dev-batch-foo" schedule_expression = "cron(40 1 ? )" is_enabled = "true" target_cluster_arn = "dev" task_definition_arn = aws_ecs_task_definition.ecs_task_definition.arn task_role_arn = module.iam_ecs_tasks.arn task_count = "1" subnet_ids = ["subnet-1", "subnet-2"] security_group_ids = ["sg-1", "sg-*2"] } module "iam_ecs_tasks" { source = "baikonur-oss/iam-nofile/aws" version = "2.0.0" type = "ecs-tasks" name = "dev-batch" policy_json = Inputs | Name | Description | Type | Default | Required | |------|-------------|:----:|:-----:|:-

Inputs (13)

NameTypeDescriptionDefault
execution_role_arnstringARN of IAM Role for task execution (see: https://docs.aws.amazon.com/ja_jp/Amazo required
task_definition_arnstringARN of Task Definition to run required
subnet_idslist(string)List of subnet ids for Fargate task ENI required
security_group_idslist(string)List of security group ids for Fargate task ENI required
task_role_arnstringARN of IAM Role for task (see: https://docs.aws.amazon.com/ja_jp/AmazonECS/lates required
namestringCloudWatch Event Rule name required
schedule_expressionstringCloudWatch schedule expression (see: https://docs.aws.amazon.com/ja_jp/AmazonClo required
target_cluster_arnstringTarget ECS cluster ARN required
platform_versionstringPlatform version"1.4.0"
task_countstringNumber of tasks to execute at once1
assign_public_ipstringAssign public ip for Fargate task ENIfalse
iam_ecs_run_task_resourcestringField for overriding ecs:RunTask resource identifier in Events IAM role (default""
is_enabledstringRule enabled flagtrue

Resources (2)

aws_cloudwatch_event_ruleaws_cloudwatch_event_target

Details

FrameworkTerraform Module
LanguageHCL
Version2.0.3
Cloud AWS
★ Stars7
Forks2
Total downloads182.6k
Inputs13
Resources2
LicenseMIT
Namespacebaikonur-oss
Updated