Configure providers
This topic assumes that you have completed all the required preparations.
Create a .tf file (for example, main.tf) in your Terraform project. Then, add the following code snippet to the .tf file:
terraform {
required_providers {
celerdatabyoc = {
source = "CelerData/celerdatabyoc"
version = "<provider_version>"
}
aws = {
source = "hashicorp/aws"
version = "4.26.0"
}
}
}
provider "celerdatabyoc" {
client_id = "<client_id>"
client_secret = "<client_secret>"
}
provider "aws" {
region = "<region_name>"
access_key = "<your_access_key>"
secret_key = "<your_secret_key>"
}
locals {
s3_bucket = "<bucket_name>"
}
The parameters you need to specify are as follows:
provider_version
: Enter the CelerData provider version of your choice. We recommend that you select the latest provider version. You can view the provider versions offered by CelerData Cloud BYOC from the CelerData Cloud BYOC provider page.client_id
andclient_secret
: Enter the Client ID and Secret of your application key or service account. See "Preparations > For CelerData."region_name
: Enter the ID of the AWS region in which you want your CelerData cluster to run. See Supported cloud platforms and regions.access_key
andsecret_key
: Enter the access key ID ("access key" for short) and secret access key ("secret key" for short) of your access key pair. See "Preparations > For AWS." For security purposes, you can set the access key and secret key as environment variables.s3_bucket
: Enter the name of your S3 bucket.