Created
March 13, 2020 18:13
-
-
Save prog893/5e70f1a1e79035343e0435bbd207b770 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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