@@ -14,7 +14,6 @@ variable "ami_id" {
1414    Recommended: Use StackGuardian Template with Packer to build custom AMI. 
1515  EOT 
1616  type         =  string 
17-   default      =  " " 
1817}
1918
2019/* -------------------+
@@ -23,6 +22,7 @@ variable "ami_id" {
2322variable  "aws_region"  {
2423  description  =  " The target AWS Region to setup Private Runner" 
2524  type         =  string 
25+   default      =  " eu-central-1" 
2626}
2727
2828/* ---------------------------+
@@ -47,10 +47,6 @@ variable "stackguardian" {
4747    api_key  =  string 
4848    org_name =  string 
4949  })
50-   default  =   {
51-     api_key  =  " " 
52-     org_name =  " " 
53-   }
5450}
5551
5652#  variable "sg_api_uri" {
@@ -62,13 +58,11 @@ variable "override_names" {
6258  description  =  " Configuration for overriding default resource names" 
6359  type  =  object ({
6460    global_prefix     =  string 
65-     runner_group_name =  string 
66-     connector_name    =  string 
61+     runner_group_name =  optional ( string ,  " " ) 
62+     connector_name    =  optional ( string ,  " " ) 
6763  })
6864  default  =   {
69-     global_prefix     =  " SG_RUNNER" 
70-     runner_group_name =  " " 
71-     connector_name    =  " " 
65+     global_prefix =  " SG_RUNNER" 
7266  }
7367}
7468
@@ -79,16 +73,10 @@ variable "network" {
7973  description  =  " Network configuration for the Private Runner instance" 
8074  type  =  object ({
8175    vpc_id              =  string 
82-     private_subnet_id   =  string 
76+     private_subnet_id   =  optional ( string ,  " " ) 
8377    public_subnet_id    =  string 
8478    associate_public_ip =  bool 
8579  })
86-   default  =   {
87-     vpc_id              =  " " 
88-     private_subnet_id   =  " " 
89-     public_subnet_id    =  " " 
90-     associate_public_ip =  false 
91-   }
9280}
9381
9482/* -----------------------+
@@ -101,11 +89,6 @@ variable "volume" {
10189    size                  =  number 
10290    delete_on_termination =  bool 
10391  })
104-   default  =   {
105-     type                  =  " gp3" 
106-     size                  =  100 
107-     delete_on_termination =  false 
108-   }
10992}
11093
11194/* ------------------------------+
@@ -114,22 +97,16 @@ variable "volume" {
11497variable  "firewall"  {
11598  description  =  " Firewall and SSH configuration for the Private Runner instance" 
11699  type  =  object ({
117-     ssh_key_name          =  string 
118-     ssh_public_key        =  string 
119-     allow_ssh_cidr_blocks =  list (string )
120-     additional_ingress_rules =  list (object ({
100+     ssh_key_name          =  optional ( string ,  " " ) 
101+     ssh_public_key        =  optional ( string ,  " " ) 
102+     allow_ssh_cidr_blocks =  optional ( list (string ), [] )
103+     additional_ingress_rules =  optional ( list (object ({
121104      port        =  number 
122105      protocol    =  string 
123106      cidr_blocks =  list (string )
124107      description =  string 
125-     }))
108+     })), []) 
126109  })
127-   default  =   {
128-     ssh_key_name             =  " " 
129-     ssh_public_key           =  " " 
130-     allow_ssh_cidr_blocks    =  []
131-     additional_ingress_rules =  []
132-   }
133110}
134111
135112/* -----------------------------------+
0 commit comments