# Bring Your Own Bucket

If you have an Enterprise account and you would like Emedgene-managed DRAGEN solution to save the DRAGEN output files in your own bucket, reach out to <techsupport@illumina.com>.

Emedgene [visualizes data in IGV](https://help.connected.illumina.com/emedgene/emedgene-analyze-manual/variant_page/visualization_section) directly from your AWS S3 bucket. In order to do it, you should enable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) for the Emedgene application URLs.

<table><thead><tr><th width="166">Case Type</th><th width="323">File Type</th><th>Expected effect</th></tr></thead><tbody><tr><td>FASTQ</td><td>FASTQ/BAM/CRAM (input)</td><td>Reanalysis will fail (will be fixed)</td></tr><tr><td>FASTQ</td><td>CRAM (Output)</td><td>Reanalysis will fail</td></tr><tr><td>FASTQ</td><td>VCFs</td><td>Reanalysis will fail</td></tr><tr><td>FASTQ</td><td>CSV, etc</td><td>Reanalysis will fail</td></tr><tr><td>VCF</td><td>BAM/CRAM (visualizations)</td><td>Visualization will fail</td></tr><tr><td>VCF</td><td>VCF (input)</td><td>Reanalysis will fail</td></tr><tr><td>VCF</td><td>CSV, etc</td><td>Reanalysis will fail (will be fixed)</td></tr></tbody></table>

This feature is only related to saving Dragen output files in your own bucket when using Dragen through Emedgene (without ICA).

If you are looking to:

* Import data from AWS S3 to Emedgene go to [manage\_data\_storages](https://help.connected.illumina.com/emedgene/emedgene-analyze-manual/managing_data_storage/manage_data_storages "mention")
* Integrating any data storage to Emedgene go to [manage\_data\_storages](https://help.connected.illumina.com/emedgene/emedgene-analyze-manual/managing_data_storage/manage_data_storages "mention")
* Download any data from Emedgene go to [manage\_s3\_credentials](https://help.connected.illumina.com/emedgene/emedgene-analyze-manual/managing_data_storage/manage_s3_credentials "mention")

***

{% hint style="info" %}
Bring your own bucket is only available for Enterprise level support accounts and require Illumina support for setup.
{% endhint %}

***

## Bring Your Own Bucket

Bring Your Own Bucket, also known as BYOK, enables you to control your DRAGEN file outputs.

Emedgene-managed DRAGEN solution saves the DRAGEN output files in a detected AWS S3 bucket that you have access to using your [S3 credentials](https://help.connected.illumina.com/emedgene/emedgene-analyze-manual/managing_data_storage/manage_s3_credentials).

However, if you have an Enterprise account and you would like Emedgene-managed DRAGEN solution to save the DRAGEN output files in your own bucket, reach out to <techsupport@illumina.com> and follow this steps:

#### 1. Create an AWS bucket

Emedgene requires access to the root folder, which means a dedicated bucket might be appropriated.

#### 2. Edit Bucket policy

Bucket policy should allow Emedgene user access to the bucket.

Example bucket policy:

```
{
    Coming Soon
}
```

#### 3. Allow illumina.com and emedgene.com for CORS

Emedgene [visualizes data in IGV](https://help.connected.illumina.com/emedgene/emedgene-analyze-manual/variant_page/visualization_section) directly from your AWS S3 bucket. In order to do it, you should enable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) for the Emedgene application URLs.

Example CORS policy:

```
{
    Coming Soon
}
```

#### 4. Test and validate the configuration with Illumina support

We will require to run a case and validate the managed DRAGEN pipeline finish successfully and all features are available in the platform.

{% hint style="info" %}
The BYOB solution means you managed your own data, meaning if you accidentally deleted or moved the data the integration with Emedgene might break. You are responsible for your DRP and data backup solutions.
{% endhint %}

***

## Managing AWS S3 Lifecycle policy

If a customer enables an AWS S3 Lifecycle policy in order to archive or change the S3 tiers for different files, they might create an adverse effect on the platform.

<table><thead><tr><th width="132">Case Type</th><th width="257">File Type</th><th>Expected effect</th></tr></thead><tbody><tr><td>FASTQ</td><td>FASTQ/BAM/CRAM (input)</td><td>Reanalysis will fail<br>(will be fixed)</td></tr><tr><td>FASTQ</td><td>CRAM (Output)</td><td>Reanalysis will fail</td></tr><tr><td>FASTQ</td><td>VCFs</td><td>Reanalysis will fail</td></tr><tr><td>FASTQ</td><td>CSV, etc</td><td>Reanalysis will fail</td></tr><tr><td>VCF</td><td>BAM/CRAM (visualizations)</td><td>Visualization will fail</td></tr><tr><td>VCF</td><td>VCF (input)</td><td>Reanalysis will fail</td></tr><tr><td>VCF</td><td>CSV, etc</td><td><p>Reanalysis will fail</p><p>(will be fixed)</p></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.connected.illumina.com/emedgene/emedgene-analyze-manual/managing_data_storage/bring-your-own-bucket.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
