Skip to main content

/images/icons/xs_temp.svg AWS S3: List Directory of

cloud.aws.s3.list_directory {
  bucket = ""
  region = ""
  key = ""
  secret = ""
  prefix = ""
  next_page_token = ""
} as x1
ParameterPurposeExample
bucketS3 bucket name"my-bucket"
regionAWS region"us-east-1"
keyAWS access key ID"AKIAXXXXXXXXXXXXXXXX"
secretAWS secret access key"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
prefixDirectory prefix to list"folder/", "uploads/"
next_page_tokenToken for pagination"eyJ2IjoiMiIsInMiOjB9"
asAlias for the directory listingx1, directory_contents
cloud.aws.s3.list_directory {
  bucket = "my-app-uploads"
  region = "us-west-2"
  key = $env.AWS_KEY_ID
  secret = $env.AWS_SECRET_KEY
  prefix = "users/images/"
} as folder_contents
  • Lists contents of an S3 directory
  • Supports pagination for large directories
  • Returns file metadata and continuation token
  • Can filter by prefix path

/images/icons/xs_temp.svg AWS S3: Get Signed URL of

cloud.aws.s3.sign_url {
  bucket = ""
  region = ""
  key = ""
  secret = ""
  file_key = ""
  ttl = 300
} as x2
ParameterPurposeExample
bucketS3 bucket name"my-bucket"
regionAWS region"us-east-1"
keyAWS access key ID"AKIAXXXXXXXXXXXXXXXX"
secretAWS secret access key"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
file_keyPath to file in bucket"folder/file.pdf"
ttlTime-to-live in seconds300, 3600, 86400
asAlias for the signed URLx2, download_url
cloud.aws.s3.sign_url {
  bucket = "my-app-files"
  region = "us-west-2"
  key = $env.AWS_KEY_ID
  secret = $env.AWS_SECRET_KEY
  file_key = "private/document.pdf"
  ttl = 3600
} as temporary_url
  • Generates a pre-signed URL for temporary access
  • URL expires after specified TTL
  • Useful for secure file sharing
  • Supports private bucket access

/images/icons/xs_temp.svg AWS S3: Upload File to

cloud.aws.s3.upload_file {
  bucket = ""
  region = ""
  key = ""
  secret = ""
  file_key = ""
  file = ""
  metadata =
  object_lock_mode = ""
  object_lock_retain_until = ""
} as x3
ParameterPurposeExample
bucketS3 bucket name"my-bucket"
regionAWS region"us-east-1"
keyAWS access key ID"AKIAXXXXXXXXXXXXXXXX"
secretAWS secret access key"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
file_keyDestination path in bucket"uploads/file.jpg"
fileFile to upload$input.file, $file_data
metadataCustom metadata for file{contentType: "image/jpeg"}
object_lock_modeS3 Object Lock mode"GOVERNANCE", "COMPLIANCE"
object_lock_retain_untilLock retention date"2024-12-31"
asAlias for upload resultx3, upload_result
cloud.aws.s3.upload_file {
  bucket = "my-app-uploads"
  region = "us-west-2"
  key = $env.AWS_KEY_ID
  secret = $env.AWS_SECRET_KEY
  file_key = "users/"|add:$user.id|add:"/profile.jpg"
  file = $input.profile_photo
  metadata = {
    contentType: "image/jpeg",
    userId: $user.id
  }
} as upload_response
  • Uploads file to S3 bucket
  • Supports custom metadata
  • Optional Object Lock configuration
  • Returns upload confirmation

/images/icons/xs_temp.svg AWS S3: Delete File

cloud.aws.s3.delete_file {
  bucket = ""
  region = ""
  key = ""
  secret = ""
  file_key = ""
}
ParameterPurposeExample
bucketS3 bucket name"my-bucket"
regionAWS region"us-east-1"
keyAWS access key ID"AKIAXXXXXXXXXXXXXXXX"
secretAWS secret access key"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
file_keyPath to file to delete"folder/file.txt"
cloud.aws.s3.delete_file {
  bucket = "my-app-uploads"
  region = "us-west-2"
  key = $env.AWS_KEY_ID
  secret = $env.AWS_SECRET_KEY
  file_key = "temp/"|add:$file.path
}
  • Deletes a file from S3 bucket
  • Permanent deletion (not recoverable)
  • No response alias needed
  • Use with caution

/images/icons/xs_temp.svg AWS S3: Create Var From File Resource

cloud.aws.s3.read_file {
  bucket = ""
  region = ""
  key = ""
  secret = ""
  file_key = ""
} as x4
ParameterPurposeExample
bucketS3 bucket name"my-bucket"
regionAWS region"us-east-1"
keyAWS access key ID"AKIAXXXXXXXXXXXXXXXX"
secretAWS secret access key"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
file_keyPath to file to read"folder/file.txt"
asAlias for file contentsx4, file_data
cloud.aws.s3.read_file {
  bucket = "my-app-data"
  region = "us-west-2"
  key = $env.AWS_KEY_ID
  secret = $env.AWS_SECRET_KEY
  file_key = "documents/"|add:$doc.id|add:".pdf"
} as document_contents
  • Reads file contents from S3
  • Returns file data
  • Useful for processing file contents
  • Supports all file types

/images/icons/xs_temp.svg AWS S3: Get File Metadata

cloud.aws.s3.get_file_info {
  bucket = ""
  region = ""
  key = ""
  secret = ""
  file_key = ""
} as x5
ParameterPurposeExample
bucketS3 bucket name"my-bucket"
regionAWS region"us-east-1"
keyAWS access key ID"AKIAXXXXXXXXXXXXXXXX"
secretAWS secret access key"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
file_keyPath to file"folder/file.txt"
asAlias for file metadatax5, file_info
cloud.aws.s3.get_file_info {
  bucket = "my-app-storage"
  region = "us-west-2"
  key = $env.AWS_KEY_ID
  secret = $env.AWS_SECRET_KEY
  file_key = "uploads/"|add:$file.path
} as file_metadata
  • Retrieves file metadata from S3
  • Returns size, last modified, etc.
  • Does not download file contents
  • Useful for file verification
I