【发布时间】:2015-04-30 11:48:39
【问题描述】:
我正在尝试通过 CloudFormation 创建 Lambda 通知,但收到有关 ARN 格式不正确的错误。
要么我的 CloudFormation 有误,要么它还不支持 Lambda 预览。
{
"AWSTemplateFormatVersion": "2010-09-09",
"Parameters": {
"LambdaArn": {
"Type": "String",
"Default": "arn:aws:lambda:{some-region}:{some-account-id}:function:{some-fn-name}"
}
},
"Resources": {
"EventArchive": {
"Type": "AWS::S3::Bucket",
"Properties": {
"NotificationConfiguration": {
"TopicConfigurations": [
{
"Event": "s3:ObjectCreated:Put",
"Topic": {
"Ref": "LambdaArn"
}
}
]
}
}
}
}
}
但是当我推送这个 CloudFormation 时,我收到了以下信息:
The ARN is not well formed
有人知道这意味着什么吗?我知道上面的示例已经过修改,因此不使用我的 actual ARN,但在我的实际代码中,我直接从 GUI 复制了 ARN。
另外,有趣的是,我能够通过 AWS 控制台创建通知,因此我只是假设 AWS CloudFormation 尚不支持此功能(尽管这不是很清楚,但我在阅读文档时并不认为) .
【问题讨论】:
标签: amazon-web-services amazon-cloudformation aws-lambda