nosus hsu
nosus hsu

Reputation: 33

create event subscriptions in RDS with CloudFormation

Does CloudFormation support or have the ability to create DB event subscriptions(RDS)? I failed to find any reference in AWS document...

Thanks

Upvotes: 0

Views: 1272

Answers (1)

erran
erran

Reputation: 1320

The latest version of CloudFormation, at the time of this writing, actually supports performing this by creating a "AWS::RDS::EventSubscription" resource in your stack.

"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
  }
}

Upvotes: 1

Related Questions