diff --git a/.gitignore b/.gitignore index 523632d..9b9635e 100644 --- a/.gitignore +++ b/.gitignore @@ -267,3 +267,4 @@ src/ElectionResults.WebApi/ClientApp/package-lock.json src/ElectionResults.API/bin/ src/ElectionResults.API/wwwroot/lib/ +.infracost diff --git a/terraform/locals.tf b/terraform/locals.tf index 992e5bd..11b657b 100644 --- a/terraform/locals.tf +++ b/terraform/locals.tf @@ -5,12 +5,12 @@ locals { images = { api = { image = "code4romania/rezultate-vot-api" - tag = "1.1.0-rc.4" + tag = "1.1.0-rc.5" } hangfire = { image = "code4romania/rezultate-vot-hangfire" - tag = "1.1.0-rc.4" + tag = "1.1.0-rc.5" } } diff --git a/terraform/service_hangfire.tf b/terraform/service_hangfire.tf index 32df87a..4ed93e2 100644 --- a/terraform/service_hangfire.tf +++ b/terraform/service_hangfire.tf @@ -107,6 +107,14 @@ module "ecs_hangfire" { { name = "Crawler__VoteMonitorUrl" value = "https://api.votemonitor.org" + }, + { + name = "Crawler__ApiKey" + valueFrom = var.crawler_api_key + }, + { + name = "Crawler__ElectionRoundId" + valueFrom = var.crawler_election_round_uuid } ] @@ -123,15 +131,6 @@ module "ecs_hangfire" { name = "HangfireDashboard__Password" valueFrom = "${aws_secretsmanager_secret.hangfire_credentials.arn}:password::" }, - { - name = "Crawler__ApiKey" - valueFrom = var.crawler_api_key - }, - { - name = "Crawler__ElectionRoundId" - valueFrom = var.crawler_election_round_uuid - } - ] allowed_secrets = [ @@ -141,7 +140,7 @@ module "ecs_hangfire" { } -# Hangfire credentials +# Hangfire credentials resource "random_password" "hangfire_password" { length = 20 special = false