我编写了 Terraform 代码以在 AWS 防火墙策略中删除 SSH。下面是删除 SSH 的代码。如何添加代码以同时删除 RDP(远程桌面协议)?
resource "aws_networkfirewall_rule_group" "drop_remote" {
capacity = 2
name = "drop-remote-ssh-rdp"
type = "STATELESS"
rule_group {
rules_source {
stateless_rules_and_custom_actions {
stateless_rule {
priority = 1
rule_definition {
actions = ["aws:drop"]
match_attributes {
protocols = [6]
source {
address_definition = "0.0.0.0/0"
}
source_port {
from_port = 22
to_port = 22
}
destination {
address_definition = "0.0.0.0/0"
}
destination_port {
from_port = 22
to_port = 22
}
}
}
}
}
}
}
}