How to reference AWS Transfer Family Workflow named variables like ${transfer:HomeDirectory} and ${transfer:HomeFolder} in Decrypt file workflow?

0

The current AWS Transfer Family Workflows allow for using ${transfer:UserName} and ${transfer:UploadDate} ref: https://docs.aws.amazon.com/transfer/latest/userguide/nominal-steps-workflow.html

Is it possible to reference the variables that are available when creating transfer policies ${transfer:HomeBucket}, ${transfer:HomeDirectory}, ${transfer:HomeFolder}, ${transfer:UserName} in the destination key prefix for the Decrypt file workflow? ref: https://docs.aws.amazon.com/transfer/latest/userguide/users-policies.html

The goal is to decrypt a file with the Decrypt file workflow and output the decrypted file in the same directory as the original file. So if it is not possible, is there a recommended way to output the decrypted file in the same directory as the original file that is based on the users ${transfer:HomeDirectory}? ref: https://docs.aws.amazon.com/transfer/latest/userguide/nominal-steps-workflow.html#decrypt-step-details

rob
asked 7 months ago428 views
1 Answer
1
Accepted Answer

Hi! Currently, it is not possible to reference the variables such as ${transfer:HomeBucket}, ${transfer:HomeDirectory}, ${transfer:HomeFolder} in the destination key prefix for the Decrypt file workflow step. Until this is supported natively, you might potentially develop a workaround such as a mapping table between usernames and their home bucket/directory/folder info, and invoke a lambda function via Custom Workflow Step that routes decrypted files based on that username to destination mapping. More details on the Custom Workflow Step can be found in the documentation here - https://docs.aws.amazon.com/transfer/latest/userguide/custom-step-details.html

AWS
answered 7 months ago
  • Thank you, we were able use use a custom step and copy the file to the user's home directory after being decrypted.

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