Skip to content

Commit

Permalink
[terraform] Use Nexus as default for the registry (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhatG authored Jan 2, 2024
1 parent 3dcef09 commit a2f6b54
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion terraform/application_services/app.hcl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
locals {
basicinfra_version = "v1"

ecr_repo = "028339422996.dkr.ecr.eu-west-1.amazonaws.com"
ecr_repo = "nexus-docker.aerius.nl"

app_name = "aerius"
app_timezone = "Europe/Amsterdam"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ output "services" {
description = "The services object containing all configuration"
value = yamldecode(templatefile("${path.module}/services.yaml.tftpl", {
APP_TIMEZONE = var.app_timezone,
APP_VERSION = var.app_version,
REGISTRY_URL = var.ecr_directory == null ? "${var.ecr_repo}/${lower(var.environment)}" : "${var.ecr_repo}/${var.ecr_directory}",
APP_VERSION = var.service["type"] == "DEV" ? "latest" : var.app_version,
REGISTRY_URL = var.ecr_repo,

BING_APIKEY = nonsensitive(data.aws_ssm_parameter.bing_apikey_search.value)

})).services
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
services:

service:
image: ${REGISTRY_URL}/service:${APP_VERSION}
image: ${REGISTRY_URL}/search:${APP_VERSION}
cpu: 4096
memory: 7100
desired_count: 1
Expand Down

0 comments on commit a2f6b54

Please sign in to comment.