AWS Cloudfront distribution does not show API Gateway distribution

混江龙づ霸主 提交于 2019-12-11 01:52:35

问题


I have a API hosted using AWS Gateway API in combination with a custom domain. Its been in production for at least a year. However, when I go to Cloudfront resource page from AWS web console, I don't see any distribution entries under my same account which is used for Gateway API.

AWS Documentation states below:

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.

I am using the same account for both Gateway and Cloudfront. But I don't see the distribution entry in Cloudfront.

What am I missing?


回答1:


It's created behind the scenes. You can't see it in your CloudWatch dashboard. That's what they mean when they say:

"is owned by a region-specific account"

Which means the CloudFront distribution is not owned by your AWS account, so you won't see it in the list of CloudFront distributions that you own.



来源:https://stackoverflow.com/questions/46567910/aws-cloudfront-distribution-does-not-show-api-gateway-distribution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!