Skip to content

s3 add-object

Add object into bucket

Description

Add file named "key" in bucket

Synopsis

s3 add-object
    [--site <site>]
    [--region <region>]
    --key <key>
    --bucket <bucket>
    <value>

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

region - (string)

     AWS region for the service
     Example: --region "region-1"
     Default: _None_      Attributes: optional

key - (string)

     Key for the object being added
     Example: --key "test2"
     Default: _None_      Attributes: required

bucket - (string)

     The name of the bucket where content needs to be added
     Example: --bucket "mairatestbucket2"
     Default: _None_      Attributes: required

value - (string)

     Value to be added
     Example: "This is test2 file"
     Default: _None_      Attributes: required

Examples

Input:

!  s3 add-object "Hello world" --bucket "mairatestbucket10" --key "firstContent"
Output:

Access Control

To use this command, you need access to the following:

Field Value
Action "update"
Service Type "s3"
Service Instance
Namespace
Object Type "bucket"
Object ID bucket

Please see Access Control for details.