Add infrastructure tags to Enos scenarios (#2486)
Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com> Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>
This commit is contained in:
1 parent
bd4f5f3801
commit
611bf80279
3 files changed
+26
No files matched your search
@@ -18,6 +18,11 @@ scenario "e2e_target" {
|
||||
"local" = "/tmp",
|
||||
"crt" = var.crt_bundle_path == null ? null : abspath(var.crt_bundle_path)
|
||||
}
|
||||
tags = merge({
|
||||
"Project Name" : var.project_name
|
||||
"Project" : "Enos",
|
||||
"Environment" : "ci"
|
||||
}, var.tags)
|
||||
}
|
||||
|
||||
step "find_azs" {
|
||||
@@ -48,6 +53,7 @@ scenario "e2e_target" {
|
||||
|
||||
variables {
|
||||
availability_zones = step.find_azs.availability_zones
|
||||
common_tags = local.tags
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,6 +66,7 @@ scenario "e2e_target" {
|
||||
|
||||
variables {
|
||||
boundary_install_dir = local.boundary_install_dir
|
||||
common_tags = local.tags
|
||||
controller_instance_type = var.controller_instance_type
|
||||
controller_count = var.controller_count
|
||||
db_pass = step.create_db_password.string
|
||||
|
||||
@@ -52,6 +52,18 @@ variable "alb_listener_api_port" {
|
||||
default = 9200
|
||||
}
|
||||
|
||||
variable "project_name" {
|
||||
description = "The description of the project"
|
||||
type = string
|
||||
default = "boundary-enos-integration"
|
||||
}
|
||||
|
||||
variable "tags" {
|
||||
description = "Tags that will be applied to infrastructure resources that support tagging"
|
||||
type = map(string)
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "target_instance_type" {
|
||||
description = "Instance type for test target nodes"
|
||||
type = string
|
||||
|
||||
@@ -54,6 +54,11 @@ scenario "integration" {
|
||||
"local" = "/tmp",
|
||||
"crt" = var.crt_bundle_path == null ? null : abspath(var.crt_bundle_path)
|
||||
}
|
||||
tags = merge({
|
||||
"Project Name" : var.project_name
|
||||
"Project" : "Enos",
|
||||
"Environment" : "ci"
|
||||
}, var.tags)
|
||||
}
|
||||
|
||||
step "ensure_bats_and_deps_are_installed" {
|
||||
@@ -89,6 +94,7 @@ scenario "integration" {
|
||||
|
||||
variables {
|
||||
availability_zones = step.find_azs.availability_zones
|
||||
common_tags = local.tags
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,6 +107,7 @@ scenario "integration" {
|
||||
|
||||
variables {
|
||||
boundary_install_dir = local.boundary_install_dir
|
||||
common_tags = local.tags
|
||||
controller_instance_type = var.controller_instance_type
|
||||
controller_count = var.controller_count
|
||||
db_pass = step.create_db_password.string
|
||||
|
||||
Reference in new issue
Block a user