seqeralabs/terraform-seqera-aws

Create Configmap and secrets compatible with Platform deployment

Closed this issue · 4 comments

The Platform configuration is requiring the following environment variables with the DB and Redis connection information

  • TOWER_DB_URL
  • TOWER_DB_PASSWORD
  • TOWER_REDIS_URL

Currently the DB password is stored in a K8s secrets seqera-db-password but it's not directly accessible by the platform config.

As a temporary workaround the following script has been created to create those variables as expected .

https://github.com/seqeralabs/platform-installer/blob/2514a69d5061d1d45ccef2eb3d1ecd2f4f243151/create-terraform-manual-config.sh#L22-L30

The goal of this ticket is to replace the above script with an action in the Terraform module, creating the settings TOWER_DB_URL, TOWER_DB_PASSWORD and TOWER_REDIS_URL with the expected values.

enekui commented

Done!
0dc60d7
A cluster has been created in Development account, London region with the following name seqera-terraform-aws
This cluster contains the new db secret and configmap as requested in this issue:
image

enekui commented

@pditommaso, test this.

You are supposed to test it, please. You can follow the installer readme, and skip the manual step.

Note the module version is currently pinned to this commit.

enekui commented

Tested!
Deployment for Cron and Backend gets the secret and configMap as respected.
image