Page tree

Trifacta SaaS



Contents:

   

Contents:


Feature Availability: This feature is available in the following editions:

  • Trifacta Enterprise Edition
  • Trifacta Professional Edition
  • Trifacta Starter Edition
  • Trifacta Premium


You can create a single, global connection to your default S3 bucket through the Trifacta application.  This connection type enables workspace users to access S3.

Simple Storage Service (S3) is an online data storage service provided by Amazon, which provides low-latency access through web services. For more information, see https://aws.amazon.com/s3/.

NOTE: A single, global connection to S3 is supported for workspace mode only. In per-user mode, individual users must configure their own access to S3.

  • Trifacta supports S3 authentication for 1) the entire workspace (workspace mode) or 2) by individual users (user mode).
  • The preferred mode of authentication can be specified by a workspace administrator in the Admin console. For more information, see AWS Settings Page.
  • If you have configured your workspace to support user mode authentication, then individual users must supply their S3 authentication credentials through their User Profile. For more information, see Storage Config Page.

Tip: After you have specified a default Amazon S3 connection, you can connect to additional S3 buckets through a different connection type. For more information, see External S3 Connections.

Prerequisites

Before you begin, please verify that your Trifacta® environment meets the following requirements:

  • Integration: Your workspace is connected to a running environment supported by your product edition.

  • Verify that Enable S3 Connectivity has been enabled in the Workspace Settings Page

Information to acquire

Before you specify this connection, you should acquire the following information. For more information on the permissions required by  Trifacta, see Required AWS Account Permissions.

Authentication methods

Tip: Credentials may be available through your S3 administrator.

You must choose one of the following authentication methods and acquire the listed information below. 

S3 bucket names

  • Acquire the name of the default S3 bucket.
  • If you are planning to use this connection to connect to additional S3 buckets, you must acquire their names, too. 

Encryption

  • If your buckets are encrypted, you must acquire the encryption method that is used.
  • Only one encryption method can be specified per connection. 

Limitations

  • After you have created this connection, it does not appear as a connection object in the Connections page.
  • Publishing the output to multi-part files is not supported.

    NOTE: For some file formats, like Parquet, multi-part files are the default output.

  • Publishing the output using compression option is not supported for Trifacta Photon jobs.

    Workaround: If you need to generate an output using compression to this S3 bucket, you can run the job on another running environment.

Create Connection

You can create this S3 connection through the application.

NOTE: You can create a single, global connection of this type. This connection is available to all workspace users.

Steps:

  1. Login to the application.
  2. In the left navigation bar, click the Connections icon.
  3. In the Create Connection page, click the Amazon S3 card.

Authentication method

  1. Use cross-account role: Select this option if you are using or plan to create IAM policies in an IAM role to apply to this connection. 
    1. Choose an S3 bucket: Enter the name of the default S3 bucket for this connection. See below. 
    2. Create an IAM policy: Follow the listed steps to create an IAM policy that   Trifacta can use to access S3. An IAM policy is a set of permissions applied to a set of AWS assets, such as an S3 bucket.  
    3. Create an IAM role: Follow the steps to create an IAM role to which you must apply the IAM policy. 
      1. IAM roles are assigned to AWS user accounts. Roles access policies, which grant access privileges.
      2. Copy the IAM Role ARN (Amazon Resource Name) from the created role and paste it into the connection window.
  2. Use access keys: Select this option if you have a key-secret combination to provide access to the S3 bucket or buckets.
    1. AWS Access Key ID: Paste in the AWS access key.
    2. AWS Secret Access ID: Paste in the secret identifier for the access key.
    3. Choose an S3 bucket: Enter the name of the default S3 bucket for this connection. See below. 

Default S3 bucket

When the connection is first accessed for browsing, the contents of this bucket are displayed. If this value is not provided, then the list of available buckets based on the key/secret combination is displayed when browsing through the connection.

NOTE: To see the list of available buckets, the connecting user must have the getBucketList permission. If that permission is not present and no default bucket is listed, then the user cannot browse S3.

Storage and encryption

  1. Additional S3 buckets: If these credentials enable access to additional S3 buckets, you can specify them as a comma-separated list of bucket names:

    myBucket1,myBucket2,myBucket3
  2. Encryption type: If server-side encryption has been enabled on your bucket, you can select the server-side encryption policy to use when writing to the bucket. SSE-S3 and SSE-KMS methods are supported. For more information, see http://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html.

      1. Server Side Kms key Id: When KMS encryption is enabled, you must specify the AWS KMS key ID to use for the server-side encryption. For more information, see "Server Side KMS Key Identifier" below.

Click Save

NOTE: After you have created this connection, it does not appear in the Connections page. To modify this connection, select User menu > Admin console > AWS Settings. See AWS Settings Page.

Server Side KMS Key Identifier

When KMS encryption is enabled, you must specify the AWS KMS key ID to use for the server-side encryption.

The format for referencing this key is the following:

"arn:aws:kms:<regionId>:<acctId>:key/<keyId>"

You can use an AWS alias in the following formats. The format of the AWS-managed alias is the following:

"alias/aws/s3"

The format for a custom alias is the following:

"alias/<FSR>"

where:

<FSR> is the name of the alias for the entire key.

Create via API

For more information, see  Trifacta API Reference docs: Enterprise | Professional | Premium

Java VFS Service

The Java VFS Service has been modified to handle an optional connection ID, enabling S3 URLs with connection ID and credentials. The other connection details are fetched through the Trifacta application to create the required URL and configuration.

// sample URI
s3://bucket-name/path/to/object?connectionId=136


// sample java-vfs-service CURL request with s3
curl -H 'x-trifacta-person-workspace-id: 1' -X GET 'http://localhost:41917/vfsList?uri=s3://bucket-name/path/to/object?connectionId=136'

Testing

For more information, see Verify Operations.

Using S3 Connections

Uses of S3

Trifacta can use S3 for the following tasks:

  1. Creating Datasets from S3 Files: You can read in source data stored in S3. An imported dataset may be a single S3 file or a folder of identically structured files. See Reading from Sources in S3 below.
  2. Reading Datasets: When creating a dataset, you can pull your data from a source in S3. See Creating Datasets below.
  3. Writing Results: After a job has been executed, you can write the results back to S3.

In the Trifacta application, S3 is accessed through the S3 browser. See S3 Browser.

NOTE: When Trifacta application executes a job on a dataset, the source data is untouched. Results are written to a new location, so that no data is disturbed by the process.

Before you begin using S3

Avoid using /trifacta/uploads for reading and writing data. This directory is used by the Trifacta application.

Your administrator should provide a writeable home output directory for you. This directory location is available through your user profile. See Storage Config Page.

Secure access

Your administrator can grant access on a per-user basis or for the entire workspace.

Trifacta utilizes an S3 key and secret to access your S3 instance. These keys must enable read/write access to the appropriate directories in the S3 instance.

NOTE: If you disable or revoke your S3 access key, you must update the S3 keys for each user or for the entire system.

Storing data in S3

Your administrator should provide raw data or locations and access for storing raw data within S3. All Trifacta users should have a clear understanding of the folder structure within S3 where each individual can read from and write results.

  • Users should know where shared data is located and where personal data can be saved without interfering with or confusing other users.
  • The Trifacta application stores the results of each job in a separate folder in S3.

NOTE: Trifacta does not modify source data in S3. Source data stored in S3 is read without modification from source locations, and source data uploaded to Trifacta is stored in /trifacta/uploads.

Reading from sources in S3

You can create an imported dataset from one or more files stored in S3.

NOTE: Import of glaciered objects is not supported.

Wildcards:

You can parameterize your input paths to import source files as part of the same imported dataset. For more information, see Overview of Parameterization.

Folder selection:

When you select a folder in S3 to create your dataset, you select all files in the folder to be included.

Notes:

  • This option selects all files in all sub-folders and bundles them into a single dataset. If your sub-folders contain separate datasets, you should be more specific in your folder selection.
  • All files used in a single imported dataset must be of the same format and have the same structure. For example, you cannot mix and match CSV and JSON files if you are reading from a single directory.

When a folder is selected from S3, the following file types are ignored:

  • *_SUCCESS and *_FAILED files, which may be present if the folder has been populated by the running environment.

NOTE: If you have a folder and file with the same name in S3, search only retrieves the file. You can still navigate to locate the folder. 

Creating datasets

When creating a dataset, you can choose to read data in from a source stored from S3 or local file.

  • S3 sources are not moved or changed.
  • Local file sources are uploaded to /trifacta/uploads where they remain and are not changed.

Data may be individual files or all of the files in a folder. In the Import Data page, click the S3 tab. See Import Data Page.

Writing results

When you run a job, you can specify the S3 bucket and file path where the generated results are written. By default, the output is generated in your default bucket and default output home directory.

  • Each set of results must be stored in a separate folder within your S3 output home directory.
  • For more information on your output home directory, see Storage Config Page.

This page has no comments.