Upload File To a Folder

Upload a file to a folder in AWS S3.

Syntax

Below is a line-by-line overview of the automation syntax. Expand each line to learn more.

upload a file to a folder

What does it do? This is the base syntax for the procedure.

Where does it go? This phrase should be written on a new line.

Is it required? ✅ Yes — This phrase is required in the syntax.

Does it require input data? ⛔ No — This phrase does not require input data.

the file is

What does it do? Specifies the file to upload.

Where does it go? This phrase should be indented beneath upload a file to a folder with. The with keyword is added to specify additional instructions.

Is it required? ✅ Yes — This phrase is required in the syntax.

Does it require input data? ✅ Yes — An IO value needs to be specified.

Example: the file is the above

the folder is

What does it do? Specifies the folder to upload the file to.

Where does it go? This phrase should be indented beneath upload a file to a folder with. The with keyword is added to specify additional instructions.

Is it required? ✅ Yes — This phrase is required in the syntax.

Does it require input data? ✅ Yes — An s3 folder reference needs to be specified.

Example: the folder is the above

the file name is

What does it do? Specifies the name of the file to upload.

Where does it go? This phrase should be indented beneath upload a file to a folder with. The with keyword is added to specify additional instructions.

Is it required? ✅ Yes — This phrase is required in the syntax.

Does it require input data? ✅ Yes — A text value needs to be specified.

Example: the file name is 'some text'

the conflict behavior is

What does it do? Specifies the behavior to use on conflict scenarios. It should be one of the following values: ('fail', 'replace', 'rename').

Where does it go? This phrase should be indented beneath upload a file to a folder with. The with keyword is added to specify additional instructions.

Is it required? 🌟 No — This phrase is optional in the syntax.

Does it require input data? ✅ Yes — This phrase requires input data.

Default: 'fail'

Example: the conflict behavior is 'fail'

Examples

1. Upload a file to folder in AWS S3

the file
get a folder at "bucket_name/google"
use the above as the folder
the name is "new_test.txt"
upload the file to folder with
    the folder is the folder
    the file name is the name

Last updated

Was this helpful?