在cloudformation中,您可以从其他区域导入api密钥吗?

问题描述

我正在考虑将我的基础架构部署在多个区域上,但我希望客户端能够使用相同的AWS :: ApiGateway :: ApiKey而不管区域是什么。

您可以从另一个区域导入AWS :: ApiGateway :: ApiKey吗?

解决方法

您可以使用AWS SSM参数密钥存储来存储api凯,并在模板中引用它,例如:https://aws.amazon.com/blogs/mt/integrating-aws-cloudformation-with-aws-systems-manager-parameter-store/