【发布时间】:2021-06-28 23:43:48
【问题描述】:
我在帐户 A 中有一个日志组,我想将它发送到另一个帐户 B 中的 kinesis 流。我正在关注 https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CrossAccountSubscriptions.html 来实现它(在打字稿中)。
在Account B 中,我创建了一个跨账户目的地:
const logDestination = new CrossAccountDestination(this, 'LogDestination', {
destinationName: 'LogDestination',
role: IAMRole,
targetArn: kinesisStream.streamArn
});
在 Account A 中,我正在尝试创建订阅过滤器:
const filter = lambdaFunction.logGroup.addSubscriptionFilter('Filter', {
filterPattern: pattern,
destination: ...
})
如何在账户 A 的模板中引用账户 B 的跨账户目的地,以便将来自 A 的日志发送到 B 中的目的地?
【问题讨论】:
标签: typescript amazon-web-services yaml amazon-cloudformation amazon-kinesis