amazon-web-services - AWS : How to allow all TCP traffic between all instances in same VPC?

标签 amazon-web-services aws-security-group

我正在按需设置 EMR 集群,并将 Windows EC2 服务器作为工作站,将 Linux EC2 服务器作为辅助服务器。都在同一个 VPC 中。我想避免每次实例出现新 IP 时都必须设置安全组规则。

我如何简单地允许任何流量在同一 VPC 中的所有服务器之间自由流动?

谢谢!

编辑 - 感谢您的回复,我知道这在生产中不是好的做法,但我们正在处理一些追踪功能的问题,我们认为这些问题是由端口引起的,这只是一个探索阶段,这将帮助我们.谢谢!

最佳答案

在安全组中,通过指定安全组 ID 而不是 IP 地址,将传入访问权限分配给其他安全组。在 Web 控制台中,如果您开始在源字段中键入“sg”,它将弹出一个安全组列表供您选择。使用安全组 ID 作为源允许属于该安全组的所有资源都可以访问。

或者,如果您只需要一个允许访问 VPC 中所有资源的规则,您可以指定 VPC 的 IP 范围。

关于amazon-web-services - AWS : How to allow all TCP traffic between all instances in same VPC?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42322445/

相关文章:

python - 使用boto 2获取CloudWatch的Alarm对象

python - 使用 boto3 检索 RDS 标签会出现索引错误。

node.js - @aws-sdk/client-lambda] - 调用 Lambda - Unit8Array 中的有效负载响应 - 转换为字符串

python-3.x - 无法删除安全组: An error occurred (DependencyViolation) when calling the DeleteSecurityGroup operation

amazon-web-services - AWS VPC 安全组命名约定

amazon-web-services - RDS - 指定可以访问 RDS 实例的 IP 地址

amazon-web-services - 如何使用堡垒主机通过 SSH 连接到目标 AWS 机器

java - AWS 容器重用和同步处理程序函数之外的资源

node.js - AWS抛出CORS

amazon-web-services - AWS 云形成 : Creating Security Group fails while it is referencing another security