Skip to content

Latest commit

 

History

History

ecs-fargate

DBeaver TE deployment for AWS ECS and Fargate with Terraform.

  1. First you need to install and configure your AWS CLI:

  2. Next you need to install Terraform

  3. Choose configuration for your cluster database:

    • If you plan to use the PostgreSQL internal container:

      • Update database password in cloudbeaver-db-init.sql file. Replace DCpassword, QMpassword, and TMpassword with your database password.
      • Update variables.tf file. Modify POSTGRES_PASSWORD field in cloudbeaver-db-env vatiables.
    • If you plan to use and RDS-based database: Note: only Amazon RDS for PostgreSQL is supported.

      • Open variables.tf.
      • Change variable rds_db to true.
      • Specify rds_db_version, the default is postgres:16.1. Only PostgreSQL version can be specified.
      • Update the credentials for database in cloudbeaver-db-env.
  4. Configure the deployment in variables.tf file as follows:

    • Set your aws_account_id, you can get it by logging into your AWS console:

    alt text

    • Set your aws_region in format us-east-1. For example:

    alt text

    • Ensure that the alb_certificate_Identifier variable contains the ID from AWS Certificate Manager corresponding to your domain specified in CLOUDBEAVER_PUBLIC_URL.
    • You can customize the deployment version by updating the dbeaver_te_version environment variable. The default version is 24.1.0.
  5. Run terraform init and then terraform apply in ecs-fargate directory to create the ECS cluster and complete the deployment.

  6. Cluster destruction is performed in reverse order:

    • Run terraform destroy in ecs-fargate directory to destroy ECS cluster.

Importing an SSL Certificate in AWS

  1. Open your web browser and log in to the AWS (Amazon Web Services) Console.

  2. Navigate to the AWS Certificate Manager service.

  3. 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.

Version update

  1. Navigate to the team-edition-deploy/AWS/ecs-fargate directory.

  2. Specify the desired version in variables.tf in the dbeaver_te_version variable.

  3. Run terraform apply to upgrade the ECS cluster and complete the deployment.