-
First you need to install and configure your AWS CLI:
-
Check that your AWS user has the minimum required IAM policies:
AmazonECS_FullAccess
AmazonEC2FullAccess
AmazonRDSFullAccess
AWSCloudMapFullAccess
-
Next you need to install Terraform
-
Clone the Git repository to your local machine by running the following command in your terminal:
git clone https://github.com/dbeaver/cloudbeaver-deploy.git
-
Choose configuration for your cluster database:
-
If you plan to use the PostgreSQL internal container:
- Navigate to
team-edition-deploy/AWS/ecs-fargate
- Open
variables.tf
. - Update database password in
cloudbeaver-db-init.sql
file. ReplaceDCpassword
,QMpassword
, andTMpassword
with your database password. - Update
variables.tf
file. ModifyPOSTGRES_PASSWORD
field incloudbeaver-db-env
vatiables.
- Navigate to
-
If you plan to use an RDS-based database: Note: only Amazon RDS for PostgreSQL is supported.
- Navigate to
team-edition-deploy/AWS/ecs-fargate
- Open
variables.tf
file. - Change variable
rds_db
totrue
. - Specify
rds_db_version
, the default ispostgres:16.1
. Only PostgreSQL version can be specified. - Set the credentials for database in
cloudbeaver-db-env
. By default it ispostgres
.
- Navigate to
-
-
Configure the deployment in
variables.tf
file as follows:- Set your
aws_account_id
, you can get it by logging into your AWS console:
- Set your
aws_region
in formatus-east-1
. For example:
- Ensure that the
alb_certificate_Identifier
variable contains the ID from AWS Certificate Manager corresponding to the domain name specified in theCLOUDBEAVER_PUBLIC_URL
variable withinvariables.tf
. The domain name inCLOUDBEAVER_PUBLIC_URL
must match the domain for which the certificates have been issued. - You can customize the deployment version by updating the
dbeaver_te_version
environment variable. The default version is24.3.0
.
- Set your
-
Run
terraform init
and thenterraform apply
inecs-fargate
directory to create the ECS cluster and complete the deployment. -
Cluster destruction is performed in reverse order:
- Run
terraform destroy
inecs-fargate
directory to destroy ECS cluster.
- Run
Note: SSL Certificates are digital documents that ensure secure communication between a web server and a user's browser. They encrypt data to prevent interception and verify the authenticity of a website. You can obtain SSL certificates from Certificate Authorities (CAs) like Let's Encrypt, DigiCert, and Comodo.
-
Open your web browser and log in to the AWS (Amazon Web Services) Console.
-
Navigate to the
AWS Certificate Manager
service. -
Click on the
Import
button and fill in the necessary certificate details as prompted.
After completing these steps, you will receive an Identifier for your newly imported certificate.
-
Navigate to the
team-edition-deploy/AWS/ecs-fargate
directory. -
Specify the desired version in
variables.tf
in thedbeaver_te_version
variable. -
Run
terraform apply
to upgrade the ECS cluster and complete the deployment.