File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
modules/domain_controller
test/test_domain_controller Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
resource "aws_security_group" "clearos" {
2
+ vpc_id = " ${ var . vpc_id } "
2
3
name = " ${ var . env_name } : Domain controller SG"
3
4
description = " Rules for domain controller"
4
5
Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ variable "centos_ami" {
46
46
default = " ami-46c1b650"
47
47
}
48
48
49
- variable "provisioning_key_path" {
50
- description = " Private key (.pem file) to be used for instance provisioning"
51
- }
52
-
53
49
variable "enable_termination_protection" {
54
50
default = true
51
+ }
52
+
53
+ variable "vpc_id" {
54
+ description = " VPC to place instance in"
55
55
}
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ data "aws_security_group" "vpc_default" {
17
17
module "domain_controller" {
18
18
source = " ../../modules/domain_controller"
19
19
target_subnet_id = " ${ data . aws_subnet . default_subnet . id } "
20
- trusted_networks_ssh = " 0.0.0.0/0"
20
+ trusted_networks_ssh = [ " 0.0.0.0/0" ]
21
21
instance_key_name = " aws-logicifydev2"
22
22
env_name = " ${ var . env_name } "
23
- trusted_networks_webpanel = " 0.0.0.0/0"
23
+ trusted_networks_webpanel = [ " 0.0.0.0/0" ]
24
24
centos_ami = " ami-f5d7f195"
25
- provisioning_key_path = " ${ path . root } /keys/aws-logicifydev2.pem"
26
25
default_security_group_ids = [" ${ data . aws_security_group . vpc_default . id } " ]
27
26
enable_termination_protection = " false"
27
+ vpc_id = " ${ data . aws_vpc . default_vpc . id } "
28
28
}
You can’t perform that action at this time.
0 commit comments