> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Read S3 Parquet using a named AWS profile

> Create the selected AWS credential, bind it to a file view, and read Parquet

How-to guideApplies to: Unified engine deployments

Create the selected AWS credential, bind it to a file view, and read Parquet
rows.

## Before you start

Use an existing nonempty Parquet dataset and a configured S3 file-source root
covering its prefix. A credential does not authorize an arbitrary storage root.
The identity needs list/read access to the bucket and actual files, plus KMS
decrypt permission when needed. Use the region and HTTPS endpoint for that
bucket. Keep the temporary view and its SELECT in the same Workbench workspace.

Install the named profile and any required login or credential helper on the
credential-service host. A profile on another machine is not read.

## Values to collect

* Bucket, Parquet prefix, AWS region, HTTPS S3 endpoint, and the
  identity-specific values shown below.

## Run the SQL

Replace every `<placeholder>` before running. Use unused names for the resources
below. Run the statements in order in Workbench.

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
CREATE CREDENTIAL recipe_aws_profile_reader USING aws
OPTIONS (
  'authentication' = 'profile',
  'region' = '<aws-region>',
  'profile' = '<profile-name>'
);

CREATE OR REPLACE TEMPORARY VIEW recipe_aws_profile
USING parquet
OPTIONS (
  path 's3://<bucket>/<parquet-prefix>/',
  credential_reference 'recipe_aws_profile_reader',
  region '<aws-region>',
  endpoint '<s3-endpoint>',
  allow_http 'false'
);

SELECT * FROM recipe_aws_profile LIMIT 5;
```

## Check the result

Expect up to five rows from the Parquet files. Creating or describing the
credential alone does not verify S3 access.

## Clean up

Remove the temporary view and credentials. The input files stay in place.

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
DROP VIEW recipe_aws_profile;
DROP CREDENTIAL recipe_aws_profile_reader;
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.