Skip to content

Commit

Permalink
moved cognito screts from background worker (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentb4 authored Dec 19, 2024
1 parent 7dc9234 commit b4ba3fc
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions modules/admin/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -257,22 +257,11 @@ resource "aws_ecs_task_definition" "admin_background_worker" {
},{
"name": "RAILS_SERVE_STATIC_FILES",
"value": "1"
},{
"name": "COGNITO_CLIENT_ID",
"value": "${var.cognito_user_pool_client_id}"
},
{
"name": "COGNITO_CLIENT_SECRET",
"value": "${var.cognito_user_pool_client_secret}"
},
{
"name": "COGNITO_USER_POOL_SITE",
"value": "https://${var.cognito_user_pool_domain}.auth.${var.region}.amazoncognito.com"
},
{
"name": "COGNITO_USER_POOL_ID",
"value": "${var.cognito_user_pool_id}"
},
{
"name": "RADIUS_CLUSTER_NAME",
"value": "${var.radius_cluster_name}"
Expand Down Expand Up @@ -310,6 +299,18 @@ resource "aws_ecs_task_definition" "admin_background_worker" {
{
"name": "SENTRY_DSN",
"valueFrom": "${var.secret_arns["moj_network_access_control_env_admin_sentry_dsn"]}"
},
{
"name": "COGNITO_USER_POOL_ID",
"valueFrom": "${var.secret_arns["moj_network_access_control_env_cognito_userpool_id"]}"
},
{
"name": "COGNITO_CLIENT_SECRET",
"valueFrom": "${var.secret_arns["moj_network_access_control_env_cognito_client_secret"]}"
},
{
"name": "COGNITO_CLIENT_ID",
"valueFrom": "${var.secret_arns["moj_network_access_control_env_cognito_client_id"]}"
}
],
"image": "${aws_ecr_repository.admin.repository_url}",
Expand Down

0 comments on commit b4ba3fc

Please sign in to comment.