Amazon Simple Storage Service (S3) is one of the earliest cloud services provided by AWS. Through many years of development, the S3 protocol has become a standard in the object storage industry. Tencent Cloud Object Storage (COS) provides implementation methods compatible with S3; therefore, you can directly use COS in most of S3 applications. This document describes how to configure such applications with COS.
S3 Compatible
in its description can use COS in most cases. If you find that some of its features cannot work properly, please submit a ticket for assistance where you should indicate that you followed the steps in this document and provide information such as the application name and screenshots.Amazon S3
, it can use the S3 service, but whether it supports COS needs to be further confirmed in relevant configuration. Application support for COS will be described in detail in the "Basic configurations" section in this document.(If you already have a Tencent Cloud account, you can ignore this step.)
(If you have already completed identity verification, you can ignore this step.)
For more information on how to verify your identity, please see Identify Verification Overview.
APPID
and access keyOn the API Key Management page in the CAM Console, get and record the APPID, SecretId, and SecretKey.
Some applications have an in-built bucket creation procedure. If you want your application to create a bucket, you can ignore this step.
examplebucket
.Most applications have similar configuration items when they are configured with a storage service. Common names and descriptions of these configuration items are as follows:
If you have any question during the configuration, please submit a ticket for assistance where you should indicate that you followed the steps in this document and provide information such as the application name and screenshots.
Common Name of Configuration Item | Description |
---|---|
Service Provider, Storage Provider, Provider, etc. |
This indicates the storage type to be used by the application and may have the following options: |
Service Endpoint, Service Address, Service URL, Endpoint, Custom Endpoint, Server URL, etc. | This indicates the address of an S3-compatible service. If you use COS, enter the COS service address here in the format of cos.<Region>.myqcloud.com or https://cos.<Region>.myqcloud.com . Whether https:// needs to be entered is determined by the application, and you can make some attempts by yourself. Here, <Region> indicates the availability region of COS. In the application, you can only create or select a bucket in the region specified in the service address. cos.ap-guangzhou.myqcloud.com ; otherwise, you cannot find the bucket in Guangzhou in the application. Amazon S3 can be selected as the application service provider and the service address can be configured, then you can change the service address to the aforementioned cos.<Region>.myqcloud.com or https://cos.<Region>.myqcloud.com . |
Access Key, Access Key ID, etc. | Here, enter the `SecretId` obtained in step 4. |
Secret Key, Secret, Secret Access Key, etc. |
Here, enter the `SecretKey` obtained in step 4. |
Region, etc. | Select "Default", "Auto", or "Automatic" for this configuration item. |
Bucket, etc. | You can select or enter the name of an existing bucket in the format of <BucketName-APPID> , such as examplebucket-1250000000 . Here, BucketName is the name you entered when you created the bucket in step 5, and APPID is the `APPID` obtained in step 4. As described above, the bucket must be in the region specified by the service address, and buckets in other regions will not be listed or cannot work properly. If you need to create a bucket, the name of the new bucket should be in the format of <BucketName-APPID> as mentioned above; otherwise, it cannot be properly created. |
Some applications have more configuration items such as advanced configurations in addition to the aforementioned ones. Some COS features are further described below for you to better use COS in your application.
COS does not guarantee full compatibility with S3. If you have any question when using COS in your application, please submit a ticket for assistance where you should indicate that you followed the steps in this document and provide information such as the application name and screenshots.
Was this page helpful?