Amazon S3
Amazon S3 or Amazon Simple Storage Service is a service offered by Amazon Web Services that provides object storage through a web service interface. Amazon S3 uses the same scalable storage infrastructure that Amazon.com uses to run its e-commerce network. (Wikipedia)
The operations on this component are almost same. But the names are not same. Bucket is used for folder.
Input
Attribute | Description |
---|---|
Profile | IAM User to access S3 |
Amazon Region | Amazon Region of the bucket |
Action | Create/Delete/List Bucket Upload/Download/Delete File |
Bucket | Bucket name |
Key | Key of an object which will be uploaded or downloaded. The contents of a file can be retrieved with key. |
Media | Input for upload, Output for download · File · Parameter |
Data | Input data when the media is parameter type. |
Path | The path of the source file to be uploaded. The path of the target file to bd downloaded. |
The value of Profile comes from IAM.
Output
Attribute | Description |
---|---|
ResultList | Bucket list when "List Bucket" action is performed. |
ResultContents | Contents of an object when "Download File" action is performed. · File path of downloaded object when Media is File type. · Stringified contents of the downloaded object when Media is Parameter type |
Example
Create a bucket
Attribute | Description |
---|---|
Profile | first |
Amazon Region | ap-south-1 |
Action | Create a bucket |
Bucket | my-bucket-scott |
Key |
|
Media |
|
Data |
|
Path |
|
Upload a file
Attribute | Description |
---|---|
Profile | first |
Amazon Region | ap-south-1 |
Action | Create a file |
Bucket | my-bucket-scott |
Key | my-key |
Media | File |
Data |
|
Path | /home/myuser/my-file.txt |
Delete a file
Attribute | Description |
---|---|
Profile | first |
Amazon Region | ap-south-1 |
Action | Delete a file |
Bucket | my-bucket-scott |
Key | my-key |
Media |
|
Data |
|
Path |
|
Delete a bucket
A bucket is not deleted if the bucket is not empty.
Attributes | Description |
Profile | first |
Amazon Region | ap-south-1 |
Action | Delete a bucket |
Bucket | my-bucket-scott |
Key |
|
Media |
|
Data |
|
Path |
|
Last updated