Ich versuche, SNS-Abonnement zu erstellen, aber ich bekomme Vorlage Validierung Fehler.Cloudformation SNS Vorlage Validierungsfehler
'MySNSTopic' ist die logische ID des Cloudformationsstapels, die als testnstopic bezeichnet wird.
Ist das korrekt? Kann mir jemand erklären, welchen Wert ich sollte hier für 'Ref'
geben"TopicArn" : {
"Ref": "MySNSTopic"
}
Template Validierungsfehler:
Template format error: Unresolved resource dependencies [MySNSTopic] in the Resources block of the template
Code:
{
"Resources": {
"MySubscription" : {
"Type" : "AWS::SNS::Subscription",
"Properties" : {
"Endpoint" : "[email protected]",
"Protocol" : "email",
"TopicArn" : {
"Ref": "MySNSTopic"
}
}
}
}
}