@@ -6,10 +6,16 @@ variable "name" {
66 description = " Name (e.g. `app` or `cluster`)."
77}
88
9- variable "application " {
9+ variable "repository " {
1010 type = string
1111 default = " "
12- description = " Application (e.g. `cd` or `clouddrove`)."
12+ description = " Terraform current module repo"
13+
14+ validation {
15+ # regex(...) fails if it cannot find a match
16+ condition = can (regex (" ^https://" , var. repository ))
17+ error_message = " The module-repo value must be a valid Git repo link."
18+ }
1319}
1420
1521variable "environment" {
@@ -20,8 +26,8 @@ variable "environment" {
2026
2127variable "managedby" {
2228 type = string
23- default = " anmol @clouddrove.com"
24- description = " ManagedBy, eg 'CloudDrove' or 'AnmolNagpal' ."
29+ default = " hello @clouddrove.com"
30+ description = " ManagedBy, eg 'CloudDrove'."
2531}
2632
2733variable "label_order" {
@@ -48,6 +54,7 @@ variable "vpc_id" {
4854 type = string
4955 default = " "
5056 description = " The ID of the VPC that the instance security group belongs to."
57+ sensitive = true
5158}
5259
5360variable "description" {
@@ -60,18 +67,21 @@ variable "allowed_ports" {
6067 type = list
6168 default = []
6269 description = " List of allowed ingress ports."
70+ sensitive = true
6371}
6472
6573variable "allowed_ip" {
6674 type = list
6775 default = []
6876 description = " List of allowed ip."
77+ sensitive = true
6978}
7079
7180variable "security_groups" {
7281 type = list (string )
7382 default = []
7483 description = " List of Security Group IDs allowed to connect to the instance."
84+ sensitive = true
7585}
7686
7787variable "protocol" {
@@ -83,9 +93,12 @@ variable "allowed_ipv6" {
8393 type = list
8494 default = []
8595 description = " List of allowed ipv6."
96+ sensitive = true
8697}
8798variable "prefix_list" {
8899 type = list
89100 default = []
90101 description = " List of prefix list IDs (for allowing access to VPC endpoints)Only valid with egress"
102+ sensitive = true
103+
91104}
0 commit comments