Skip to content

Manage S3

The Manage S3 module allows managing files in Amazon S3 buckets. It supports two operations: upload of PDF files from a URL and delete of existing files. In upload mode, it downloads the PDF from the URL provided in the input data and uploads it to the specified bucket. It is ideal for storing workflow-generated documents, backing up files, or managing cloud resources on AWS.

ParameterTypeRequiredDescription
bucketNametextYesS3 bucket name
actionselectYesAction to perform: upload or delete
fileNametextYesFile name in S3 (including path if applicable)
{
"nextModule": "siguiente_modulo",
"data": {
"pdfUrl": "https://ejemplo.com/documento.pdf"
}
}
{
"bucketName": "mi-bucket-documentos",
"action": "upload",
"fileName": "facturas/factura_001.pdf"
}
{
"bucketName": "mi-bucket-documentos",
"action": "delete",
"fileName": "facturas/factura_antigua.pdf"
}
  • In upload mode, the PDF URL is obtained from data.pdfUrl
  • Content-Type is set as application/pdf for upload
  • AWS credentials are configured at environment level (not at node level); uses AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY variables, or IAM role
  • In delete mode, it does not verify if the file exists before attempting deletion
  • Currently only supports uploading PDFs from URL