aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2021-09-07 09:27:29 +0000
committerPeter Mikus <pmikus@cisco.com>2021-09-07 09:29:42 +0000
commit3d781d7e6add31fc3729de3ad7fed1e720c8756d (patch)
treec5dd84f6d88af9078d7bf7c311ec5e0906d76690 /fdio.infra.terraform
parent80a4b408b1bec92f51813c5b758d7b2739f665ed (diff)
Terraform: Add job name as VPC ID
Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I82819c924012c966ba91fdf39ffba500ee0ce6b0
Diffstat (limited to 'fdio.infra.terraform')
-rw-r--r--fdio.infra.terraform/2n_aws_c5n/main.tf11
-rw-r--r--fdio.infra.terraform/2n_aws_c5n/variables.tf18
-rw-r--r--fdio.infra.terraform/3n_aws_c5n/main.tf11
-rw-r--r--fdio.infra.terraform/3n_aws_c5n/variables.tf18
4 files changed, 48 insertions, 10 deletions
diff --git a/fdio.infra.terraform/2n_aws_c5n/main.tf b/fdio.infra.terraform/2n_aws_c5n/main.tf
index a39eff64a8..44ec177e99 100644
--- a/fdio.infra.terraform/2n_aws_c5n/main.tf
+++ b/fdio.infra.terraform/2n_aws_c5n/main.tf
@@ -1,12 +1,13 @@
module "deploy" {
source = "./deploy"
- # Parameters starting with var. can be set using "TF_VAR_*" environment variables
- # or -var parameter when running "terraform apply", for default values see ./variables.tf
+ # Parameters starting with var. can be set using "TF_VAR_*" environment
+ # variables or -var parameter when running "terraform apply", for default
+ # values see ./variables.tf
testbed_name = var.testbed_name
- topology_name = "2n_aws_c5n"
- environment_name = "CSIT-AWS"
- resources_name_prefix = "CSIT_2n_aws_c5n"
+ topology_name = var.topology_name
+ environment_name = var.environment_name
+ resources_name_prefix = var.resources_name_prefix
# AWS general
region = var.region
diff --git a/fdio.infra.terraform/2n_aws_c5n/variables.tf b/fdio.infra.terraform/2n_aws_c5n/variables.tf
index 88ebda6d9d..c3d81bfbcc 100644
--- a/fdio.infra.terraform/2n_aws_c5n/variables.tf
+++ b/fdio.infra.terraform/2n_aws_c5n/variables.tf
@@ -33,3 +33,21 @@ variable "testbed_name" {
type = string
default = "testbed1"
}
+
+variable "topology_name" {
+ description = "Topology name"
+ type = string
+ default = "2n_aws_c5n"
+}
+
+variable "environment_name" {
+ description = "Environment name"
+ type = string
+ default = "CSIT-AWS"
+}
+
+variable "resources_name_prefix" {
+ description = "Resources name prefix"
+ type = string
+ default = "CSIT_2n_aws_c5n"
+}
diff --git a/fdio.infra.terraform/3n_aws_c5n/main.tf b/fdio.infra.terraform/3n_aws_c5n/main.tf
index ed87161eb5..abb60ce418 100644
--- a/fdio.infra.terraform/3n_aws_c5n/main.tf
+++ b/fdio.infra.terraform/3n_aws_c5n/main.tf
@@ -1,12 +1,13 @@
module "deploy" {
source = "./deploy"
- # Parameters starting with var. can be set using "TF_VAR_*" environment variables
- # or -var parameter when running "terraform apply", for default values see ./variables.tf
+ # Parameters starting with var. can be set using "TF_VAR_*" environment
+ # variables or -var parameter when running "terraform apply", for default
+ # values see ./variables.tf
testbed_name = var.testbed_name
- topology_name = "3n_aws_c5n"
- environment_name = "CSIT-AWS"
- resources_name_prefix = "CSIT_3n_aws_c5n"
+ topology_name = var.topology_name
+ environment_name = var.environment_name
+ resources_name_prefix = var.resources_name_prefix
# AWS general
region = var.region
diff --git a/fdio.infra.terraform/3n_aws_c5n/variables.tf b/fdio.infra.terraform/3n_aws_c5n/variables.tf
index c87b1c3cfa..29a611adca 100644
--- a/fdio.infra.terraform/3n_aws_c5n/variables.tf
+++ b/fdio.infra.terraform/3n_aws_c5n/variables.tf
@@ -35,3 +35,21 @@ variable "testbed_name" {
type = string
default = "testbed1"
}
+
+variable "topology_name" {
+ description = "Topology name"
+ type = string
+ default = "3n_aws_c5n"
+}
+
+variable "environment_name" {
+ description = "Environment name"
+ type = string
+ default = "CSIT-AWS"
+}
+
+variable "resources_name_prefix" {
+ description = "Resources name prefix"
+ type = string
+ default = "CSIT_3n_aws_c5n"
+}