How to get streamArn of a manually created dynamodb table in CloudFormation
I am trying to create a cloudformation template to deploy a lambda and this lambda will have DynamoDB as trigger. So, to accommodate that I am using AWS::Lambda::EventSourceMapping in my cloudformation template and hardcoding EventSourceArn for each dynamodb table.
My question, is there any way to get streamArn of a existing DynamoDB table, which is created manually? or I have to pass this value hardcoded from parameter section.
Please help me with you advice.
Yanıtlar
All the things you create manually are available in AWS console and you could check all arns.
For you specific case go to AWS Console -> DynamoDB -> Select your table
.

Note: I would recommend using cloudformation and avoid using manual things if this is deployed somewhere for real.
Belirli parametre türleri dışında, manuel olarak oluşturulan kaynak Arns'ı almak için yerel CloudFormation işlevi yoktur .
Bu kaynağı manuel olarak oluşturulmuş bir kaynak olarak tutmayı düşünüyorsanız, bir dize veya SSM tabanlı bir parametre olarak başvuruda bulunabilmek için şablonunuza bir parametre olarak girmeniz gerekir .
Alternatif olarak , DynamoDB tablo adını parametre olarak kabul eden ve akışın Arn değerini almak için bir Lambda tetikleyen bir Özel kaynak oluşturabilirsiniz.
If you wanted to managed the table in CloudFormation you could construct the resource in your CloudFormation template and then import into the stack. By doing this you could then reference the StreamArn
of the DynamoDB table resource.