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
질문됨 7달 전446회 조회
1개 답변
1
수락된 답변

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
답변함 7달 전
  • Thank you, we were able use use a custom step and copy the file to the user's home directory after being decrypted.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠