Can you do conditional workflows in AWS Transfer Family?

0

Our customers can upload unencrypted text files or PGP-encrypted text files. I don't see a way right now with Workflows to only PGP-decrypt if the file is a PGP file (i.e. ends in ".pgp" or ".gpg") or skip if it's not a PGP file.

I know I can write my own custom Lambda function, but I'd prefer to use the built-in steps as much as possible. Is there a way to accomplish a conditional step currently?

cmyers
asked 9 months ago328 views
3 Answers
1
Accepted Answer

Right now it's not possible to use the predefined decrypt step with additional conditions like you described. If you upload through the Transfer Family endpoint a file which is not encrypted with PGP, the predefined decrypt step will generate an exception. You can configure exception-handling steps to take the desired actions when the decryption fails. Please take a look at this blog post for additional details.

AWS
Fabio_L
answered 9 months ago
  • Thank you! That's what I thought but wanted confirmation. Do you know if there's a plan to add conditional execution or filters of some kind in the future? (i.e. only PGP decrypt if the file matches the pattern *.pgp?)

  • You're welcome! I'm not aware of this filtering in the service roadmap but I will let the engineering team about your request. We are always open to suggestions to improve AWS Transfer Family!

  • If I were to turn on the predefined decrypt step and I have both PGP-encrypted and non-encrypted files on my server, will I still be charged for the non-encrypted files that generate an exception, or will we only be billed for the files that are successfully decrypted?

    Would there be any downside to using the step and just letting the non-encrypted files attempts to be decrypted fail silently when the decryption is attempted?

0

Relating to this question - if I were to turn on the predefined decrypt step and I have both PGP-encrypted and non-encrypted files on my server, will I still be charged for the non-encrypted files that generate an exception, or will we only be billed for the files that are successfully decrypted?

Would there be any downside to using the step and just letting the non-encrypted files attempts to be decrypted fail silently when the decryption is attempted?

noam
answered 6 months ago
  • Hi! No, you will not be charged for files that are not decrypted and generate an exception. There isn't any downside of letting decryption fail silently for non-encrypted files, but suggest that you define your exception handling steps carefully to ensure that the cause of the error in nominal steps was infact that the file was non-encrypted, and not because the decryption step genuinely failed to process an encrypted file due to some other reason.

0

Hi @cmyers - Thanks for your question. I'm a Product Manger with Transfer Family, and as we evaluate improvements to this feature with ability to define workflows more granularly, would like to understand your use-case better. Can we pls speak over a quick 15 min call sometime? Let me know how can I reach out to you offline, or feel free to reach out to me on vinamraj@amazon.com. Many thanks!

answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions