Skip to content

Conversation

@signorrayan
Copy link
Contributor

@signorrayan signorrayan commented Apr 4, 2023

Update the main branch. (v012 > main)
(The main branch haven't the latest changes that applied in v012 branch.)

@halavehzadeh
Copy link

Hi
this is new request for adding security group for SSH traffic in code. please let me know

'resource "aws_security_group" "allow_tls" {
name = "Terrafrom-firewall"
description = "Managed from Terraform"
}

resource "aws_vpc_security_group_ingress_rule" "allow_tls_ipv4" {
security_group_id = aws_security_group.allow_tls.id
cidr_ipv4 = "0.0.0.0/0"
from_port = 22
ip_protocol = "tcp"
to_port = 22
}

resource "aws_vpc_security_group_egress_rule" "allow_all_traffic_ipv4" {
security_group_id = aws_security_group.allow_tls.id
cidr_ipv4 = "0.0.0.0/0"
ip_protocol = "-1" # semantically equivalent to all ports
} '

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants