Creating Custom Dremio Projects
Dremio 11.0.0+ allows Dremio administrators to include their own S3 bucket, EBS volume, and EFS volume in a custom Dremio project, rather than using Dremio-provided default resources. Dremio 11.0.0+ provides an AWS configuration gateway with a REST API to create a project ID and a consistent set of AWS resource names that Dremio uses to group the resources, as well as a REST API to create the custom project with those resource inputs.
To create a Dremio custom project in AWS Edition:
- Generate a project ID and a name for an S3 bucket using the
/aws/gateway/projectInputendpoint on your Dremio AWS Edition deployment. - Create and tag the AWS resources that you want to include in your custom Dremio project.
- Create the custom project with the
/aws/gateway/customProjectendpoint on your Dremio AWS Edition deployment.
- A single Dremio 11.0.0+ AWS Edition deployment may create only one custom Dremio project.
- A Dremio custom project is available only while the AWS configuration gateway in Dremio 11.0.0 is running.
- Dremio 11.0.0+ stops the AWS configuration gateway after you create a custom project or open an existing project.
Generating Project ID and an S3 Bucket Name
Dremio uses AWS tags to group your resources in a custom project. Use the projectInput endpoint to generate a project ID and a name for your S3 bucket before you create resources in AWS for your custom project.
Syntax
The endpoint requires one query parameter, the EC2 instance ID for your Dremio AWS Edition deployment.
Query parameter syntax/aws/gateway/projectInput?instanceId={EC2-instance-id}
Example Request
Example requsthttp://54.202.16.250:9047/aws/gateway/projectInput?instanceId=i-0941ec036ca73c48b
Example Response
Example response{
"statusCode": 200,
"error": null,
"id": "45a3cbf7-936a-4e4a-861d-17b5875a4fb2",
"bucketName": "dremio-me-45a3cbf7-936a-4e4a-861d-17b5875a4fb2-08e9a0a2f9a8400f"
}
The id parameter in the response provides the ID for your custom Dremio project. The name of the S3 bucket in your custom project must match the value of the bucketName field.
In the next step, you will add this ID to the resources that you want to include in your custom project.
Creating and Tagging Project Resources
Dremio AWS Edition requires the following resource tags by resource type.
S3 Buckets
| Tag Name | Tag Value |
|---|---|
dremio_managed | true |
dremio_project_id | {project-id-from- projectInput-endpoint} |