Skip to main content

File Writer

Seamlessly write files to cloud storage providers with configurable paths and bucket names.

What is the File Writer?

A screenshot of a 'File Writer' utility interface showing settings for uploading a file to AWS S3. The fields displayed include Storage Provider set to 'AWS S3', Credentials set to 'Nocodo AWS', Region set to 'Europe (Ireland) - eu-west-1', File Path set to 'test-file.jpg', and Bucket Name set to 'nocodo-test-bucket'.

The File Writer is a powerful utility node in Nocodo that allows users to write files to specified cloud storage providers such as AWS S3. It offers detailed configurations for file paths and bucket names, making it easy to manage file storage in the cloud.

How to use it?

  1. Add the File Writer node: Drag and drop the File Writer node into your workflow from the node library.
  2. Configure Input Parameters/Anchors:
    • Storage Provider: Select the cloud storage provider where you want to store your file. The available options include:
      • AWS S3
    • File Path: Enter the file path where the file will be stored in the cloud. This path should follow the conventions of the selected storage provider.
    • Bucket Name: Enter the name of the storage bucket where the file will be stored. Ensure the bucket exists and the provided name matches exactly.

Required AWS IAM Roles and Permissions

To successfully use the File Writer node with AWS S3, ensure that the AWS IAM user has the following permissions:

  • s3:PutObject
  • s3:GetObject
  • s3:ListBucket

Example Task: File Writer with AWS polly

Objective: Create your own Audiobook

Three connected dark-themed interface panels. The first panel, 'Text Input', displays a text excerpt from a book. The second panel, 'AWS Polly Tool,' has fields for credentials, region, output format, voice ID, and text. The third panel, 'File Writer Utilities,' has fields for storage provider, credentials, region, file path, and bucket name.

Step-by-Step Setup

  1. Add and Configure AWS Polly:

    • Drag the AWS Polly node into your workflow.
    • Configure the AWS Polly node:
      • Output Format: Select mp3.
      • Voice ID: Choose a voice, e.g., Joanna.
      • Text: Provide the text input that you want to convert to speech.
  2. Connect AWS Polly to File Writer:

    • Link the audio output from the AWS Polly node to the file input anchor of the File Writer node.
  3. Configure File Writer:

    • Set the Storage Provider to AWS S3.
    • Enter the File Path, e.g., speech_output/alice-ch1.mp3.
    • Enter the Bucket Name, e.g., my-audio-bucket.

Useful Resources

By following these detailed steps and utilizing the resources provided, you will be able to seamlessly write files to your specified cloud storage using the File Writer node in nocodo.