2014-10-02 51 views
0

CloudFormation是否支持或有能力創建數據庫事件訂閱(RDS)? 我沒能找到在寫這篇文章的時候AWS文檔中的任何參考...使用CloudFormation在RDS中創建事件訂閱

感謝

+0

我一直在尋找這個能力,但我不認爲它的產品尚未推出。以下是Dean Wilson的解決方法: https://github.com/deanwilson/aws-scripts/blob/master/create-rds-sns-association.md – Niall 2014-11-12 15:15:49

+0

非常感謝! – 2014-11-13 02:52:29

回答

0

CloudFormation的最新版本,實際上支持通過創建您的堆棧一個"AWS::RDS::EventSubscription" resource執行此。

"myEventSubscription": { 
    "Type": "AWS::RDS::EventSubscription", 
    "Properties": { 
    "EventCategories": ["configuration change", "failure", "deletion"], 
    "SnsTopicArn": "arn:aws:sns:us-west-2:123456789012:example-topic", 
    "SourceIds": ["db-instance-1", { "Ref" : "myDBInstance" }], 
    "SourceType":"db-instance", 
    "Enabled" : false 
    } 
}