Thank you for your comments. It should work. Actually I can successfully create file on S3 with tntdrive from windows. However, I would like to know if there is the way to connect file to S3 without mounting a bucket as local folder by 3rd party tool such as tntdrive, goofy, etc. Since File Listener and Attachment support S3, so I guess there could be the way to do it directly from Pega.
AWS S3 is supported OOTB. You will need to define a new repository record, and then use the repository data page APIs to interact with files on it. If you are looking to store pulse or case attachments, these can configured on the application rule form.
So if I understand correctly, you did not use a Connect-File in the end ?
I have a PegaCloud repository available in my System Settings at file://pegacloudrepository:/, but if I set it as destination path, the Test connectivity is giving me a "No such Directory or Folder: file://pegacloudrepository:/" error.
Yes, your outline is correct. Just adding two more points for you consideration:
1. If you use pyContent, you need to set it to the BASE64 string of the intended content of your file. If you have the option, please consider using pyStream instead since that will the platform to stream the file content to the repository instead of loading it all into memory.
2. You can call a savable data page from a smart shape or flow action as well as from an activity, please consider those if your use case allows.