Skip to content

Instantly share code, notes, and snippets.

@prog893
Created March 13, 2020 18:13
Show Gist options
  • Save prog893/5e70f1a1e79035343e0435bbd207b770 to your computer and use it in GitHub Desktop.
Save prog893/5e70f1a1e79035343e0435bbd207b770 to your computer and use it in GitHub Desktop.
module "fargate_scheduled_task" {
source = "baikonur-oss/fargate-scheduled-task/aws"
version = "2.0.2"
name = "sample-batch"
schedule_expression = "cron(0 0 1 * ? *)"
target_cluster_arn = "example_cluster"
task_definition_arn = aws_ecs_task_definition.batch.arn
task_count = "1"
execution_role_arn = data.aws_iam_role.execution_role.arn
task_role_arn = data.aws_iam_role.example.arn
subnet_ids = data.aws_subnet_ids.example.ids
security_group_ids = [data.aws_security_group.example.id]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment