Nat Gateway数据传输成本分析

Nat Gateway data transfer cost analysis

根据 AWS 计费仪表板,我看到“EC2:NAT 网关 - 数据处理”的成本更高,有没有办法让我深入了解哪个实例或哪个用户或哪个 s3 存储桶或哪个 emr 集群?

NAT 网关将附加到特定的 VPC,因此可以将此资源使用范围限定在该范围内,此外,NAT 网关绑定到 VPC 中的路由 table(s)。

通过使用它,您可以识别使用 NAT 网关的资源所在的子网,如果您有多个 NAT 网关,CloudWatch 指标将允许您获得 BytesIn 和 BytesOut 的细分。

从这里您可以启用 VPC flow logs on the selected subnets and then analyse the transit that is occurring perhaps using Athena 来查询您的日志。