简体   繁体   English

如何从 cloudformation 中的现有表中引用 dynamodb stream arn?

[英]How to reference a dynamodb stream arn from an existing table in cloudformation?

I have a dynamodb table in one region (Singapore) which was created by a global table from another region (Sydney).我在一个地区(新加坡)有一个 dynamodb 表,它是由另一个地区(悉尼)的全局表创建的。 So there is no cloudformation stack for the table in Singapore region.所以新加坡地区的表没有云形成堆栈。 I am going to deploy a lambda which enable streams from the table in Singapore.我将部署一个 lambda 来启用来自新加坡表的流。 The question is how can I reference the stream arn in the cloudformation when I deploy the lambda?问题是当我部署 lambda 时,如何在 cloudformation 中引用 stream arn?

There's two main approaches:主要有两种方法:

  1. Pass the Stream ARN as a parameter to the CloudFormation stack when you create it创建时将 Stream ARN 作为参数传递给 CloudFormation 堆栈
  2. Write a Custom Resource (Lambda-function) to query the Stream ARN and return it.编写自定义资源(Lambda 函数)以查询 Stream ARN 并返回它。 Then write your actual Lambda trigger based on the output of the custom resource然后根据自定义资源的 output 编写你实际的 Lambda 触发器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS CloudFormation:如何获取 DynamoDB GlobalTable 副本的 stream ARN? - AWS CloudFormation: How to get stream ARN of DynamoDB GlobalTable replica? 如何在Cloudformation模板中引用DynamoDB表的最新Stream - How to reference the latest Stream of a DynamoDB table in a Cloudformation template 将来自CloudFormation的ARN引用传递给Swagger - Passing ARN reference from CloudFormation to Swagger 如何在 cloudformation 中引用 AWS 托管策略 arn? - How to reference AWS managed policy arn in cloudformation? cloudformation中一个Elasticache集群的参考文献 - Reference arn of a Elasticache cluster in cloudformation 如何使用CloudFormation基于现有ARN创建AWS资源? - How to create AWS resources based on an existing ARN using CloudFormation? 如何在 cloudformation 策略文档中引用资源 ARN? (山药) - How to reference a resource ARN in a cloudformation policy document ? (yaml) 如何使用 CloudFormation 从别名获取 AWS SSM 密钥 Arn? - How to get an AWS SSM Key Arn from an Alias using CloudFormation? 通过 CloudFormation 为现有表添加自动扩展到 AWS DynamoDB - Adding autoscaling to AWS DynamoDB via CloudFormation for already existing table Dynamodb 表流触发现有记录的 lambda - Dynamodb table stream trigger lambda for existing records
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM