AWS Cloudfront 分布不显示 API 网关分布

AWS Cloudfront distribution does not show API Gateway distribution

我有一个 API 使用 AWS Gateway API 结合自定义域托管。它已经投入生产至少一年了。 但是,当我从 AWS web console 转到 Cloudfront 资源页面时,我没有在用于网关 API.

的同一帐户下看到任何分发条目

AWS Documentation 状态如下:

The CloudFront distribution created by API Gateway is owned by a region-specific account affiliated with API Gateway. When tracing operations to create and update such a CloudFront distribution in CloudWatch logs, you must use the API Gateway account Id. For more information, see Log Custom Domain Name Creation in CloudTrail.

我为 GatewayCloudfront 使用同一个帐户。但我没有在 Cloudfront 中看到分发条目。

我错过了什么?

它是在幕后创建的。您无法在 CloudWatch 控制面板中看到它。这就是他们说的意思:

"is owned by a region-specific account"

这意味着 CloudFront 分配不属于您的 AWS 账户,因此您不会在您拥有的 CloudFront 分配列表中看到它。