MediaMath / lambda-cron

LambdaCron - serverless cron tool
Apache License 2.0
25 stars 4 forks source link

Feature: Add task to activate AWS Data Pipelines. #17

Open javibravo opened 7 years ago

javibravo commented 7 years ago

Add new task type to activate AWS Data Pipelines: http://boto3.readthedocs.io/en/latest/reference/services/datapipeline.html#DataPipeline.Client.activate_pipeline

Use a wrapper to allow use all parameters in the function.

javibravo commented 7 years ago

Activate Pipeline require to pass role for AWS Data Pipeline role

ClientError: An error occurred (AccessDeniedException) when calling the ActivatePipeline operation: User: arn:aws:sts::430404216840:assumed-role/LambdaCron-testing/LambdaCron-testing is not authorized to perform: iam:PassRole on resource: arn:aws:iam::430404216840:role/DataPipelineDefaultRole

Documentation: http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html

Need to find the way to pass role in a dynamic and easy way.