Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Need help in ecs fargate terraform code with task schedular #45

Open
jashvadevops opened this issue May 20, 2022 · 2 comments
Open

Need help in ecs fargate terraform code with task schedular #45

jashvadevops opened this issue May 20, 2022 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@jashvadevops
Copy link

Hi,

I'm really appreciate the way the terraform code is written for ecs fargate,,,
here i have some confusion to use for my requirement as below

I need help in terraform code to create task scheduler in ecs type fargate with schedule expression as my task runs once in 24 hrs.
i have my existing iam role and policies with me and i want to use those role and custom and standard policy as task role and ecs task execution role and deploy the schedule task in ecs.

could you please help to this code

Many thanks

@jnonino jnonino self-assigned this May 20, 2022
@jnonino jnonino added the question Further information is requested label May 20, 2022
@jnonino
Copy link
Member

jnonino commented May 20, 2022

Hi @jashvadevops, how are you?
Have you checked this module: ecs-fargate-scheduled-task?
Let me know if that suits your needs or if you need anything else.

@jashvadevops
Copy link
Author

Hi @jnonino thanks a lot for asking, and I'm doing good. Hope you are doing well.

Thanks again for vey quick response.

Yes I went through it but I have little confusion where in my case I'm using azure devops pipeline instead running in terraform code in Jenkins or running terraform commands in locally.
so I have folder structure like as below in my azure devops pipeline

image

so I'm confused how can I split your code to make use for my folder structure as I need below folders

  • container definition
  • ecs task role/ecs task execution role ( want to pass existing role arn and existing policy both standard policy arn and
    customer inline policy which is already created in aws console)
  • task scheduler

kindly help

Thanks in advance

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
Development

No branches or pull requests

2 participants