File tree 4 files changed +7
-7
lines changed
terraform/environments/aws-account-id/us-east-2/dev
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ resource "aws_instance" "dev_example" {
7
7
ami = module. ubuntu_ami . id
8
8
instance_type = " t3.nano"
9
9
key_name = var. terraform_key_pair_id
10
- vpc_security_group_ids = var. security_groups
10
+ vpc_security_group_ids = var. vpc_security_group_ids
11
11
subnet_id = var. subnet_id
12
12
associate_public_ip_address = true
13
13
Original file line number Diff line number Diff line change @@ -32,6 +32,6 @@ dependency "default_vpc" {
32
32
inputs = {
33
33
terraform_key_pair_id = dependency.terraform_key_pair.outputs.id
34
34
terraform_key_pair_private_key_openssh = dependency.terraform_key_pair.outputs.private_key_openssh
35
- security_groups = [dependency.default_vpc.outputs.dev_security_group_name ]
35
+ vpc_security_group_ids = [dependency.default_vpc.outputs.dev_security_group_id ]
36
36
subnet_id = dependency.default_vpc.outputs.subnet_id
37
37
}
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ variable "subnet_id" {
13
13
type = string
14
14
}
15
15
16
- variable "security_groups " {
17
- description = " List of security groups for attaching into instance"
16
+ variable "vpc_security_group_ids " {
17
+ description = " List of IDs of security groups for attaching into instance"
18
18
type = list
19
19
default = []
20
20
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ output "subnet_id" {
8
8
description = " The ID of the default subnet in default vpc"
9
9
}
10
10
11
- output "dev_security_group_name " {
12
- value = aws_security_group. dev . name
13
- description = " The name of the 'dev' security group"
11
+ output "dev_security_group_id " {
12
+ value = aws_security_group. dev . id
13
+ description = " The ID of the 'dev' security group"
14
14
}
You can’t perform that action at this time.
0 commit comments