Add or Edit an Amazon S3 Source

Amazon simple storage service (S3) is a cloud-based data storage designed to store, manage, and distribute large quantities of data worldwide. Members of the Administrators and Content Managers built-in groups can add the content of Amazon S3 buckets to a Coveo organization. Coveo indexes Amazon S3 files to make them searchable.

Tip
Leading practice

The number of items that a source processes per hour (crawling speed) depends on various factors, such as network bandwidth and source configuration. See About Crawling Speed for information on what can impact crawling speed, as well as possible solutions.

Source Key Characteristics

Features Supported Additional information
Amazon S3 version Latest cloud version Following available Amazon S3 releases
Searchable content types1 check Buckets2 and objects (folders and files)
Content update operations Refresh x
Rescan check Takes place every day by default.
Rebuild check
Content security options Determined by source permissions x
Source creator check
Everyone check
Note 1: An access key is needed to connect to the Amazon Web Services (AWS) service through the software development kit (SDK). The access key is a way to authenticate from the SDK as an Identity and Access Management (IAM) account. The number of requests is unlimited, but you're charged for every request to your Amazon S3 buckets.
Note 2: Amazon S3 Requester Pays buckets aren't supported.

Add or Edit an Amazon S3 Source

When adding or editing an Amazon S3 Source, follow the instructions below.

"Configuration" Tab

In the Add/Edit an Amazon S3 Source panel, the Configuration tab is selected by default. It contains your source’s general and authentication information, as well as other parameters.

General Information

Source Name

Enter a name for your source.

Tip
Leading practice

A source name can’t be modified once it’s saved, therefore be sure to use a short and descriptive name, using letters, numbers, hyphens (-), and underscores (_). Avoid spaces and other special characters.

Amazon S3 bucket URL

Enter the address of one or more Amazon S3 buckets using one of the following formats:

  • Virtual-host style

Examples
  • http://<BUCKET>.s3.amazonaws.com/

  • http://<BUCKET>.s3.<AWS_REGION>.amazonaws.com/

where you replace <BUCKET> with the name of your actual bucket, and <AWS_REGION> with your region-specific endpoint.

  • Path style

Examples
  • http://s3.amazonaws.com/<BUCKET>

  • http://s3.<AWS_REGION>.amazonaws.com/<BUCKET>

where you replace <BUCKET> with the name of your actual bucket, and <AWS_REGION> with your region-specific endpoint.

Notes
Character Optical Recognition (OCR)

If you want Coveo to extract text from image files or PDF files containing images, check the appropriate box. OCR-extracted text is processed as item data, meaning that it’s fully searchable and will appear in the item Quick View. See Enable Optical Character Recognition for details on this feature.

Note

Contact Coveo Sales to add this feature to your organization license.

"Authentication" Section

Fill the appropriate boxes depending on whether your S3 bucket content is secured or public.

  • If your S3 bucket content is secured, meaning not accessible by anonymous users, enter the AWS Access Key ID and AWS Secret Access Key values linked to an AWS Identity and Access Management (IAM) account. The IAM account must have at least the read permission on the bucket content to index. See the Console Access section in the Understanding and Getting Your Security Credentials article for more details.

  • If your S3 bucket content is public, meaning anonymous users can access the content, you may leave the AWS Access Key ID and AWS Secret Access Key boxes empty.

Notes
  • You must, however, ensure that bucket permissions include List for the Everyone grantee, to prevent getting an authentication error such as: Coveo is unable to authenticate to access the specified bucket through the Amazon S3 API and consequently cannot perform any action regarding your source. Edit the configuration to review the provided AWS Access Key ID and AWS Secret Access Key ID.

  • Before building the source, in a browser, test your bucket URL (without a path), and validate that it returns an XML file listing the bucket content (keys). If you get a short Access denied XML error, the source will give an authentication error.

"Content Security" Tab

Select who will be able to access the source items through a Coveo-powered search interface. For details on this parameter, see Content Security.

"Access" Tab

In the Access tab, set whether each group and API key can view or edit the source configuration (see Resource Access):

  1. If available, in the left pane, click Groups or API Keys to select the appropriate list.

  2. In the Access Level column for groups or API keys with access to source content, select View or Edit.

Completion

  1. Finish adding or editing your source:

    • When you want to save your source configuration changes without starting a build/rebuild, such as when you know you want to do other changes soon, click Add Source/Save.

      Note

      On the Sources (platform-eu | platform-au) page, you must click Launch build or Start required rebuild in the source Status column to add the source content or to make your changes effective, respectively.

    • When you’re done editing the source and want to make changes effective, click Add and Build Source/Save and Rebuild Source.

      Back on the Sources (platform-eu | platform-au) page, you can review the progress of your source addition or modification.

      Once the source is built or rebuilt, you can review its content in the Content Browser.

  2. Optionally, consider editing or adding mappings once your source is done building or rebuilding.

Refine the Content to Index

You may want to avoid indexing certain subfolders, or to index only a few of them. To do so:

  1. If not already done, create and save your source with a broad bucket URL.

  2. In your source JSON configuration, enter an address filter to refine the targeted content.

    Important

    Your bucket URL must match one of your inclusion addressPatterns and not match any of your exclusion addressPatterns.

  3. Build or rebuild your source.

What’s Next?

What's next for me?