Maria Livia
Maria Livia

Reputation: 75

Avoid pre-signed URL expiry when IAM role key rotates

In Airflow I have 2 tasks defined that run every day:

Because Qubole uses an IAM role the generated url will expire when the keys are rotated (less than 24 hours as far as I can tell).

I'm trying to find a solution for this. My current idea is moving the second task into an AWS lambda and using IAM user credentials to avoid the expiry issue.

Is there any other approach I could take without over complicating it?

Upvotes: 0

Views: 1032

Answers (1)

Chris Williams
Chris Williams

Reputation: 35238

You will need to use specific IAM credentials. Best practice would be be setting the permissions on the IAM user to only do what is required.

Upvotes: 1

Related Questions