The DB password for the RDS PostgreSQL instance is passed in using GitHub secrets, which will ensure that the secrets are encrypted before they reach the runner but is not optimal as it will mean that the secrets exposed to anyone who has access to the ECS task definition within the AWS console.
A more secure solution would be to look at storing the secrets in AWS Secrets Manager and injecting those using the secrets key in the ECS task definition. See link below.
Overview
The DB password for the RDS PostgreSQL instance is passed in using GitHub secrets, which will ensure that the secrets are encrypted before they reach the runner but is not optimal as it will mean that the secrets exposed to anyone who has access to the ECS task definition within the AWS console.
A more secure solution would be to look at storing the secrets in AWS Secrets Manager and injecting those using the secrets key in the ECS task definition. See link below.
Links