Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Does anyone have terraform layout for deploying Cloudbreak on AWS ?

Highlighted

Does anyone have terraform layout for deploying Cloudbreak on AWS ?

New Contributor

i want to deploy cloudbreak on production with external database , does anyone have layout for HA , external databased cloudbreak on aws.

5 REPLIES 5

Re: Does anyone have terraform layout for deploying Cloudbreak on AWS ?

@navdeep agarwal

Although I don't have terraform layout, I would propose the following approach instead:

  1. Set up external DB for Cloudbreak somewhere and create the 3 required databases (2nd point)
  2. Launch Cloudbreak quick-start template based on AWS Cloudformation
  3. Edit Cloudformation template in AWS editor
    1. modify "cbdprofile" part
    2. Add required variables of 3rd point
  4. Create stack with the modified template

This should do it, the 1st point can be automated also.

Hope this helps!

Re: Does anyone have terraform layout for deploying Cloudbreak on AWS ?

Rising Star

Hi

I am trying to deploy Cloudbreak in AWS using CloudFormation. The goal is set up Cloudbreak to use external databases (cbdb, periscopedb,uaadb) during the deployment. For that I added:

...
"cbdprofile" : { "Fn::Join" : ["", [
...
"export CB_DB_PORT_5432_TCP_ADDR=[address to postgres in AWS RDS] \n",          
"export CB_DB_PORT_5432_TCP_PORT=5432 \n",          
"export CB_DB_ENV_USER=databaseAdmin \n",
"export CB_DB_ENV_PASS=[passw]\n",
"export CB_DB_ENV_DB=nbmdmcbdb \n",
"export PERISCOPE_DB_TCP_ADDR=[address to postgres in AWS RDS] \n",
"export PERISCOPE_DB_TCP_PORT=5432 \n",
"export PERISCOPE_DB_USER=databaseAdmin \n",
"export PERISCOPE_DB_PASS=[passw]\n",
"export PERISCOPE_DB_NAME=nbmdmperiscopedb \n",
"export PERISCOPE_DB_SCHEMA_NAME=public \n",
"export IDENTITY_DB_URL=[address to postgres in AWS RDS]:5432 \n",
"export IDENTITY_DB_USER=databaseAdmin \n",
"export IDENTITY_DB_PASS=[passw]\n",
"export IDENTITY_DB_NAME=nbmdmuaadb \n",
...

Into template under cbdprofile part.

After stack is created in AWS Cloudbreak still uses internall databases. When I check Profil file there is no rows I added. Even if I check with cbd env show - there are no lines I added to template.

I can add this lines manually to Profile and after cbd restart Cloudbreak will use external databases.


Is it at all possible set this variables via template?


Br,

Margus Roo

Re: Does anyone have terraform layout for deploying Cloudbreak on AWS ?

Expert Contributor

Hi @Margus Roo

It's not enough to edit the template, as these variables aren't copied by default to the profile. You have to edit the init script too:

https://github.com/hortonworks/cbd-quickstart/blob/master/install-and-start-cbd.sh#L179-L200

Re: Does anyone have terraform layout for deploying Cloudbreak on AWS ?

Rising Star

How can I change init script during deploying with AWS CloudFormation? The only way I can interact is template.


Br,

Margus Roo

Re: Does anyone have terraform layout for deploying Cloudbreak on AWS ?

Expert Contributor

Hi @Margus Roo

You have to clone the repo and modify the script/template and build it yourself so the new script would be included in it.

Don't have an account?
Coming from Hortonworks? Activate your account here