add second security group

This commit is contained in:
Anton Livaja 2024-11-26 22:42:37 -05:00
parent 624bfaf8f3
commit 40f9f9a264
Signed by: anton
GPG Key ID: 44A86CFF1FDF0E85
1 changed files with 4 additions and 1 deletions

View File

@ -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"