我在美国东部地区部署了一个 lambda。需要在多个区域部署相同的 lambda。有没有一种简单的方法(在门户中)来做到这一点?或者我必须在每个区域手动创建这些 lambdas 吗?
最佳答案
您最好的选择是使用 stack set in CloudFormation .
AWS CloudFormation StackSets extends the functionality of stacks by enabling you to create, update, or delete stacks across multiple accounts and regions with a single operation. Using an administrator account, you define and manage an AWS CloudFormation template, and use the template as the basis for provisioning stacks into selected target accounts across specified regions.
使用堆栈集,您可以指定要将 lambda 部署到的帐户和区域。您可能希望将 lambda 代码放入 S3 存储桶中,然后您可以从 CloudFormation 模板中引用该存储桶。
然后很容易(也很简单)部署到新区域——只需将该区域添加到堆栈集。
关于amazon-web-services - 是否可以一次在多个区域部署相同的 aws lambda jar?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40616781/