seqeralabs / terraform-seqera-aws

Apache License 2.0
5 stars 3 forks source link

Create Configmap and secrets compatible with Platform deployment #16

Closed pditommaso closed 10 months ago

pditommaso commented 10 months ago

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

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 10 months ago

Done! https://github.com/seqeralabs/terraform-seqera-aws/commit/0dc60d7896ba6e2bcfe6ac2d1037cc45d6e349b8 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 10 months ago

@pditommaso, test this.

pditommaso commented 10 months ago

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 10 months ago

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

image