【发布时间】:2022-02-01 08:52:45
【问题描述】:
我正在使用 cloudformation 模板构建 dynamo db(见下文),一旦堆栈构建成功,我想提醒/通知/触发另一个 aws 资源,如 lambda 函数或步进函数或 aws 数据管道开始这样我就可以开始填充发电机了。一旦 cloudformation 堆栈创建成功,触发另一个进程或 aws 资源的最佳方法是什么?
AWSTemplateFormatVersion: 2010-09-09
Description: AWS CloudFormation Template To Create a DynamoDB
Parameters:
HashKeyElementName:
Type: String
Default: Id
Description: Hash Key Name
HashKeyElementType:
Type: String
Default: S
Description: Hash Key Type
Resources:
Table:
Type: AWS::DynamoDB::Table
Properties:
TableName: MyTable
AttributeDefinitions:
-
AttributeName: !Ref HashKeyElementName
AttributeType: !Ref HashKeyElementType
KeySchema:
-
AttributeName: !Ref HashKeyElementName
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 5
WriteCapacityUnits: 5
Outputs:
MyTable:
Description: Table Created using this template.
Value: !Ref Table
【问题讨论】:
-
stackoverflow.com/questions/70742972/… 这能回答你的问题吗?
标签: amazon-web-services amazon-cloudformation