Amazon S3 Usage Guide
Object Storage provides features such as service creation, listing, folder listing, folder creation, file upload, and download through the Samsung Cloud Platform Console. Additionally, the corresponding features are also available through APIs that are compatible with Amazon S3. You can use the same tools that leverage Amazon S3.
To use Amazon S3 utility tools, you must create and verify your authentication keys. For details, see Create an authentication key.
Amazon S3 API
The following is a list of Amazon S3 APIs supported by the Samsung Cloud Platform Object Storage service.
| Category | Detailed Description |
|---|---|
| head-bucket | Query bucket information |
| list-buckets | List Buckets |
| get-bucket-versioning | Query bucket versioning |
| put-bucket-versioning | Fix bucket versioning |
| get-bucket-encryption | View bucket encryption settings |
| put-bucket-encryption | Apply bucket encryption settings |
| delete-bucket-encryption | Delete bucket encryption settings |
| copy-object | Copy, Move, and Rename Objects |
| put-object | Create Object |
| get-object | Download Object |
| list-objects | List Objects |
| head-object | Object Details |
| get-object-acl | Query Object ACL |
| delete-object | Delete Object
|
| list-object-versions | List object versions |
| delete-object | Delete Object Version |
| presign | Issuing a Presigned URL for a PUT Object |
| get-bucket-acl | Check bucket public permissions |
| create-bucket | Create a bucket |
| delete-bucket | Delete Bucket |
| get-bucket-cors | Check the bucket CORS (Cross Origin Resources) configuration |
| put-bucket-cors | Create Bucket CORS (PUT) |
| delete-bucket-cors | Delete bucket CORS |
| put-bucket-tagging | Create bucket tagging |
| get-bucket-tagging | Query bucket tagging |
| delete-bucket-tagging | Delete bucket tagging |
| put-bucket-website | Create a bucket website |
| get-bucket-website | Query bucket website |
| delete-bucket-website | Delete the bucket website |
| get-bucket-policy-status | Query bucket policy status |
| put-bucket-acl | Create bucket ACL |
| create-multipart-upload | Create a multipart upload |
| upload-part | Perform a multipart upload |
| complete-multipart-upload | Multipart upload complete |
| list-multipart-uploads | Multipart upload list |
| abort-multipart-upload | Delete Incomplete Multipart Upload |
| put-object-tagging | Create object tagging |
| get-object-tagging | Object tagging lookup |
| delete-object-tagging | Delete object tagging |
| list-objects-V2 | Object Query (v2) |
| put-object-acl | Create an Object ACL |
| list-parts | Query Parts |
| put-public-access-block | Create a public access block |
| get-public-access-block | Query public access block |
| delete-public-access-block | Delete public access block |
| put-bucket-lifecycle | Create a bucket lifecycle (only Expiration rules are supported) |
| get-bucket-lifecycle | Query Bucket Lifecycle |
| delete-bucket-lifecycle | Delete Bucket Lifecycle |
| put-bucket-policy | Create a bucket policy. For an example of creating a bucket policy, see Example of creating a bucket policy. |
| get-bucket-policy | Query bucket policy |
| delete-bucket-policy | Delete bucket policy |
| put-bucket-replication | Modify bucket replication policy
|
| get-bucket-replication | View bucket replication policy |
| delete-bucket-replication | Delete bucket replication policy |
Example of creating a bucket policy
put-bucket-policy When using , refer to the following example to create a JSON file.
{
"Statement": [
{
"Action": "s3:*",
"Condition": {
"IpAddress": {
"scp:SourceIp": []
},
"Resource": {
"scp:SourceDBaaSId": [],
"scp:SourceResourceId": [],
"scp:SourceVpcEndpointId": []
},
"Service": {
"scp:ServiceAiTraining": "true",
"scp:ServiceScf": "false"
}
},
"Effect": "Allow",
"Principal": "*",
"Resource": [
"srn:e::1234:kr-west1::objectstorage:bucket/bucketname",
"srn:e::1234:kr-west1::objectstorage:bucket/bucketname/*"
]
}
],
"Version": "2012-10-17"
}{
"Statement": [
{
"Action": "s3:*",
"Condition": {
"IpAddress": {
"scp:SourceIp": []
},
"Resource": {
"scp:SourceDBaaSId": [],
"scp:SourceResourceId": [],
"scp:SourceVpcEndpointId": []
},
"Service": {
"scp:ServiceAiTraining": "true",
"scp:ServiceScf": "false"
}
},
"Effect": "Allow",
"Principal": "*",
"Resource": [
"srn:e::1234:kr-west1::objectstorage:bucket/bucketname",
"srn:e::1234:kr-west1::objectstorage:bucket/bucketname/*"
]
}
],
"Version": "2012-10-17"
}Action,Effect, andPrincipalcannot be modified.Resource: Enter Object Storage SRN and Object Storage SRN/*.ConditionIpAddress,Resource, andServicecan be modified as follows.IpAddress: Enter a single IP address or CIDR format.Resource: Enter each resource ID.Service: Enterfalseortrue.- For details on allowed targets, see Configure Access Control.
Example of creating a bucket replication policy
put-bucket-replication When using , refer to the following example to create a JSON file.
{
"Role": "srn:e::1234:::iam:user/abc3d3442",
"Rules": [
{
"ID": "replication-policy-1",
"Status": "Enabled",
"Priority": 1,
"DeleteMarkerReplication": {
"Status": "Enabled"
},
"Filter": {
"Prefix": ""
},
"Destination": {
"Bucket": "srn:e::1234:kr-west1::objectstorage:bucket/bucketname"
}
}
]
}{
"Role": "srn:e::1234:::iam:user/abc3d3442",
"Rules": [
{
"ID": "replication-policy-1",
"Status": "Enabled",
"Priority": 1,
"DeleteMarkerReplication": {
"Status": "Enabled"
},
"Filter": {
"Prefix": ""
},
"Destination": {
"Bucket": "srn:e::1234:kr-west1::objectstorage:bucket/bucketname"
}
}
]
}Role: Enter the IAM SRN.Rules > DestinationBucket: Enter the bucket SRN.- If you do not enter an ID for the
Rule, it is automatically generated with a random value. - Changing the ID of a
Rulecreates a new policy and deletes the existing policy.
Amazon S3 CLI
To use Amazon S3 with the AWS CLI, see the Amazon S3 CLI guide.
Amazon S3 SDK for Java
To use the Amazon S3 SDK for Java, refer to the Amazon S3 SDK guide.
- For the required region parameter when using the Amazon S3 SDK, refer to the following.
- For the Korea West (kr-west1) region: kr-west
- For Korea South 1, 2, and 3 (kr-south1, 2, 3): kr-south
- The region parameter is for reference only; the actual region is determined by the URL.
- South Korea 3 (kr-south3) Region Limitations
- File upload and download functionality through the Samsung Cloud Platform Console is restricted.
- Use of the S3 API/CLI with a public URL is restricted.
- However, access to Private URLs through resources (such as Virtual Servers) created in the Samsung Cloud Platform Console is possible.
- Regional restrictions for Korea South 1 (kr-south1) and Korea South 2 (kr-south2)
- You must allow a separate firewall configuration to access the public URL.
- You can find the public URL address on the Object Storage details page. * See Viewing Object Storage Details.