Mit CloudFormation kann keine SNS-Ereignisquelle für eine Lambda-Funktion erstellt werden.
Dies ist das Wolkenbildung Vorlagencode für mein Problem:
"SNSTopic": {
"Type": "AWS::SNS::Topic",
"Properties": {
"TopicName": "JumpboxPresenceTopic",
"DisplayName": "Jumpbox Presence Topic",
"Subscription": [
{
"Endpoint": {
"Fn::GetAtt": [
"Lambda",
"Arn"
]
},
"Protocol": "lambda"
}
]
}
},
"Lambda": {
"Type": "AWS::Lambda::Function",
"Properties": [...]
Ich kann das Thema im @ seh SNS Instrumententafel:
Aber es wird nicht in der Lambda-Funktion angezeigtEvent Sources panel:
Das seltsame daran ist, dass, wenn ich ein neues Abonnement von der @ erstell SNS dashboard Für dieselbe Lambda-Funktion wird kein neues Abonnement erstellt, da es sich um ein genaues Duplikat handelt. Wenn ich jetzt jedoch das @ prüEvent Sources Panel imLambda Dashboard, Ich kann einen neuen Eintrag für das @ sehSNS: JumpboxPresenceTopic
:
Ich glaube, es ist ein Problem auf der Amazon-Seite, aber ich könnte mich irren. Stimmt etwas mit meinem Ansatz nicht oder liegt eine Einschränkung von AWS vor?