cn-terraform / terraform-aws-ecs-fargate

AWS ECS Fargate Terraform Module
https://registry.terraform.io/modules/cn-terraform/ecs-fargate
Apache License 2.0
87 stars 57 forks source link

Feature Request: Scheduled Tasks #4

Closed ff6347 closed 5 years ago

ff6347 commented 5 years ago

Last one.

I'm actually trying to create a scheduled task that runs my container from a cron expression. Do you have any hints or ideas how I can provision something like this?

I'm pretty new to terraform so any hint our example you can point me to would be highly appreciated.

ff6347 commented 5 years ago

using Terraform v0.12.3 provider.aws v2.18.0

ff6347 commented 5 years ago

I guess as I understand it this is out of the scope of this module.

jnonino commented 5 years ago

Yes, seems out of scope for this module but let me do some research and probably I can create another module for your requirement

ff6347 commented 5 years ago

Thank you. Very kind of you. I already managed to build scheduled task on fargate, but I would love to get some input on it. I'm sure there are some unnecessary things in there. I'll be out of office for two weeks. I'll get back to you once I'm back.

jnonino commented 5 years ago

Great, when you come back take a look at this module and let me know you comments.

https://registry.terraform.io/modules/jnonino/ecs-fargate-scheduled-task/aws

ff6347 commented 5 years ago

Hey @jnonino thanks for wipping together that module. I'm currently pretty happy with my solution. I'd like to learn a little more about terraform. So writing it by myself helps with that. 😄 Would you mind to take a look at this setup and tell me if there are some mistakes in there? https://github.com/fabianmoronzirfas/tf-scheduled-task