Object Storage
    • PDF

    Object Storage

    • PDF

    Article Summary

    Available in Classic and VPC

    You can migrate data using NAVER Cloud Platform's Object Storage. To upload and download data through Object Storage, you must connect Amazon S3 to the server.

    Note

    You can use Object Storage without zone restrictions in Classic and VPC.

    Data migration using Object Storage (Linux)

    To migrate data between servers using Object Storage, conduct the following steps in order:

    Subscribe to Object Storage and create a bucket

    The following describes how to subscribe to Object Storage and create a bucket.

    1. Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
    2. Click the Services > Storage > Object Storage menus, in that order.
    3. Click the [Subscribe] button.
    4. When the Subscribe pop-up window appears, click the [Apply] button.
      • When the subscription is successfully made, the [Subscribe] button changes to the [Subscribed] button.
    5. Click the [Create bucket] button in the Bucket Management page.
    6. Enter the name of the bucket you're going to create and then click the [Next] button.
    7. Select the statuses of locking and encryption of the saving target, and then click the [Next] button.
      • To set a lock or encryption, visit Contact Us for a separate inquiry.
    8. Select whether to disclose the bucket and, if necessary, set the bucket use permissions for other accounts, and then click the [Next] button.
    9. After checking the final information, click the [Create bucket] button.

    Create an API authentication key and connect Amazon S3

    To use Object Storage through Amazon S3 API, you must create an API authentication key in the portal first.
    The following describes how to create an API authentication key and connect S3.

    1. From NAVER Cloud Platform portal, click the My Page> Account management > Authentication key management menus, in that order.

    2. Enter the current password and click the [OK] button.

    3. Click the [Create a new API authentication key] button when the Manage API authentication key page is displayed.

      • The API authentication key you created appears in the list.
    4. Download the python module for installing s3cmd from the Linux server.

      • CentOS/Rocky Linux
        # yum install -y python-dateutil python3-setuptools
        
      • Ubuntu
        # apt install python-dateutil python3-setuptools
        
    5. Download and unzip the s3cmd source file.

      Note

      The VPC can communicate externally only under the following conditions:

      • Public Subnet: when the Internet Gateway (IGW) is configured and a public IP is assigned
      • Private Subnet: when NAT Gateway is configured
      • Download the source file
        wget https://github.com/s3tools/s3cmd/archive/master.zip 
        
      • Unzip the source file
        unzip master.zip
        
    6. Deploy the s3cmd module.

      cd s3cmd-master
      sudo python3 setup.py install
      
    7. Set the s3cmd config.

      s3cmd --configure
      
      • Access Key ID: enter the access key ID value of the authentication key created in the My Page > Manage account > Manage authentication key menu of the portal
      • Secret Access Key: enter the secret key value of the authentication key created in the My Page > Manage account > Manage authentication key menu of the portal
      • S3 Endpoint: enter the S3 Endpoint
      Note

      S3 Endpoint value of the server built on the public subnet and private subnet

      • Public domain: kr.object.ncloudstorage.com
      • Private domain: kr.object.private.ncloudstorage.com
      • DNS-style bucket+hostname: kr.object.ncloudstorage.com/%(bucket)/
      • Other items: enter "Enter"
    8. View bucket and files.

      • View bucket
        s3cmd ls
        
      • View bucket lower directories and files
        s3cmd ls [bucket name]
        

    Upload and download files

    You can upload and download files using the created bucket. To download files, do the following:

    • Upload
      • Upload file
        s3cmd put [upload files] [bucket path]
        
      • Upload only the changed files by comparing with the files of the bucket
        s3cmd sync [upload files] [bucket path]
        
      • Upload directory
        s3cmd put -r [directory name] [bucket path]
        
    • Check uploaded status
      • Check on the server
        s3cmd ls [bucket path]
        
      • Check in the bucket
        Click the Services > Storage > Object Storage > Bucket Management menus, and then select the bucket
    • Download files from the bucket to the server
      • Download with the s3cmd command
        s3cmd get [download files] [location for download]
        
      • Download using the URL path of the bucket
        wget -q -t 1 --timeout=3 -O [location for download] [URL of bucket files]
        

    Data migration using Object Storage (Windows)

    To migrate data between servers using Object Storage, conduct the following steps in order:

    Subscribe to Object Storage and create a bucket

    The following describes how to subscribe to Object Storage and create a bucket.

    1. Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
    2. Click the Services > Storage > Object Storage menus, in that order.
    3. Click the [Subscribe] button.
    4. When the Subscribe pop-up window appears, click the [Apply] button.
      • When the subscription is successfully made, the [Subscribe] button changes to the [Subscribed] button.
    5. Click the [Create bucket] button in the Bucket Management page.
    6. Enter the name of the bucket you're going to create and then click the [Next] button.
    7. Select the statuses of locking and encryption of the saving target, and then click the [Next] button.
      • To set a lock or encryption, visit Contact Us for a separate inquiry.
    8. Select whether to disclose the bucket and, if necessary, set the bucket use permissions for other accounts, and then click the [Next] button.
    9. After checking the final information, click the [Create bucket] button.

    Create an API authentication key and connect Amazon S3

    To use Object Storage through Amazon S3 API, you must create an API authentication key in the portal first.
    The following describes how to create an API authentication key and connect S3.

    1. From NAVER Cloud Platform portal, click the My Page> Account management > Authentication key management menus, in that order.

    2. Enter the current password and click the [OK] button.

    3. Click the [Create a new API authentication key] button when the Manage API authentication key page is displayed.

      • The API authentication key you created appears in the list.
    4. Download and install the S3 browser from the Windows server.

      • You can download the latest version of S3 Browser from the Download page.
      Note
      • The VPC can communicate externally only under the following conditions:
        • Public Subnet: when the Internet Gateway (IGW) is configured and a public IP is assigned
        • Private Subnet: when NAT Gateway is configured
      • The S3 browser serves as a client for Amazon S3 and Amazon CloudFront. Although it's a free version, it specifies use for general personal or non-commercial purposes. Therefore, you can use the browser regardless of the license. If you want to use more features, you may use the paid version.
    5. Enter the following items in the Add account pop-up window that appears when you launch the S3 browser for the first time and add an account.

      • Account Name: enter the account you want to use (<example> NaverCloud)
      • Account Type: S3 Compatible Storage
      • REST Endpoint: enter the REST Endpoint
      Note

      S3 Endpoint value of the server built on the public subnet and private subnet

      • Public domain: kr.object.ncloudstorage.com
      • Private domain: kr.object.private.ncloudstorage.com
      • Access Key: enter the access key ID value of the authentication key created in the My Page > Manage account > Manage authentication key menus in the portal
      • Secret Key: enter the secret key value of the authentication key created in the My Page > Manage account > Manage authentication key menu of the portal
    6. Check if the connection is normal in the [Task] tab.

      • Check if creating/deleting buckets, uploading/downloading files, and creating/deleting folders can be performed normally.
      • Grant permissions with NAVER Cloud Platform console or a related API.

    Upload and download files

    You can upload and download files using the created bucket. To download files, do the following:

    • Upload
      • Upload file: select a bucket on the S3 browser > Files → select the Upload file(s) menu > select the file to upload
      • Upload folder: Files > select the Upload folder(s) menu > select the folder to upload
    • Download
      • Download file: select a bucket on the S3 browser > select a file to download > click the Download menu
      • Download folder: select a bucket on the S3 browser > select a folder to download > click the Download menu

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.