aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/main.tf
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-01-25 12:54:28 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2023-01-25 15:12:17 +0000
commit61cf4d230c3bd88cd0a6f3782796cc3949485b72 (patch)
tree90aa5f8366dd561bb2b5d64c4d3b77edb81ed40b /fdio.infra.terraform/terraform-aws-fdio-csit-dash-app-base/main.tf
parenta76b2a54b95e2a6b9620a631098f0016a0dc8e40 (diff)
feat(terraform): Refactor application version deploy
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I065a018745a82762c816de96d8a69116416aa0ce
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.tf13
1 files changed, 9 insertions, 4 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 7cc6185df9..aa76701f15 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,6 +1,9 @@
locals {
- name = "fdio-csit-dash-app"
- version = "fdio-csit-dash-app-base-${var.version}"
+ bucket = var.application_bucket
+ description = var.application_description
+ name = var.application_name
+ name_version = "${var.application_name}-base-${var.application_version}"
+ source = var.application_source
}
data "vault_aws_access_credentials" "creds" {
@@ -10,7 +13,9 @@ data "vault_aws_access_credentials" "creds" {
module "elastic_beanstalk_application_version" {
source = "../terraform-aws-elastic-beanstalk-application-version"
- application_description = "FD.io CDASH"
+ application_bucket = local.bucket
+ application_description = local.description
application_name = local.name
- application_version_name = local.version
+ application_name_version = local.name_version
+ application_source = local.source
}