Skip to content

Commit

Permalink
feat(portal): add environment to Portal container (#105)
Browse files Browse the repository at this point in the history
This can then be used in custom developer portals

Signed-off-by: Daniel.Hill <daniel.hill@engineering.digital.dwp.gov.uk>
  • Loading branch information
dan-hill2802 authored Aug 16, 2023
1 parent bad36bb commit 45f4be1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/ecs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ resource "aws_ecs_task_definition" "kong" {
kong_plugins = join(",", concat(["bundled"], var.kong_plugins))
entrypoint = var.entrypoint
nginx_custom_config = base64encode(var.nginx_custom_config)
environment = var.environment
}) : null

tags = {
Expand Down
4 changes: 4 additions & 0 deletions templates/ecs/kong_portal.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"name": "AWS_REGION",
"value": "${region}"
},
{
"name": "ENVIRONMENT",
"value": "${environment}"
},
{
"name": "KONG_CLUSTER_MTLS",
"value": "shared"
Expand Down

0 comments on commit 45f4be1

Please sign in to comment.