aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/main.tf
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2022-04-27 15:28:42 +0200
committerPeter Mikus <pmikus@cisco.com>2022-04-27 13:31:33 +0000
commit373375dbbc35bbcb5c5a3d4ab3342efc4870bb51 (patch)
treec99fedaf6371f805ea118fff0e3d7699ac632f0b /fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/main.tf
parent3c421a0c9690b782f299946903a928632cb36f52 (diff)
feat(infra): Terraform updates
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I3d7ecad9125e3ff55c0b4e1da5cda5a1ff22d690
Diffstat (limited to 'fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/main.tf')
-rw-r--r--fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/main.tf9
1 files changed, 7 insertions, 2 deletions
diff --git a/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/main.tf b/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/main.tf
index 1de8c391b1..7ecca06394 100644
--- a/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/main.tf
+++ b/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/main.tf
@@ -1,3 +1,8 @@
+locals {
+ name = "fdio-csit-dash-app"
+ version = "fdio-csit-dash-app-${var.version}"
+}
+
data "vault_aws_access_credentials" "creds" {
backend = "${var.vault_name}-path"
role = "${var.vault_name}-role"
@@ -6,6 +11,6 @@ data "vault_aws_access_credentials" "creds" {
module "elastic_beanstalk_application_version" {
source = "../terraform-aws-elastic-beanstalk-application-version"
application_description = "FD.io CSIT Results Dashboard"
- application_name = "fdio-csit-dash-app"
- application_version_name = "fdio-csit-dash-app-base"
+ application_name = local.name
+ application_version_name = local.version
}