add second security group
This commit is contained in:
parent
624bfaf8f3
commit
40f9f9a264
|
@ -159,7 +159,10 @@ resource "aws_instance" "my_ec2" {
|
|||
ami = "ami-03e383d33727f4804"
|
||||
instance_type = "t2.micro"
|
||||
|
||||
security_groups = [aws_security_group.allow_ssh.name]
|
||||
security_groups = [
|
||||
aws_security_group.allow_ssh.name,
|
||||
aws_security_grou.default_egress.name
|
||||
]
|
||||
|
||||
tags = {
|
||||
Name = "TestEC2Instance"
|
||||
|
|
Loading…
Reference in New Issue