AWS Amazon RDS Event Subscription

This page shows how to write Terraform and CloudFormation for Amazon RDS Event Subscription and write them securely.

aws_db_event_subscription (Terraform)

The Event Subscription in Amazon RDS can be configured in Terraform with the resource name aws_db_event_subscription. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

github-iconprancer-io/prancer-terramerra
resource "aws_db_event_subscription" "default-db-security-group" {
  name      = "rds-event-sub"
  sns_topic = aws_sns_topic.default.arn

  source_type = "db-security-group"
  enabled = false
github-iconag-pinguin/terraform_rds_replication
resource "aws_db_event_subscription" "snapshots" {
  provider = aws.src

  name      = "rds-snapshots"
  sns_topic = aws_sns_topic.rds_snapshots.arn
}

Parameters

Explanation in Terraform Registry

Provides a DB event subscription resource.

AWS::RDS::EventSubscription (CloudFormation)

The EventSubscription in RDS can be configured in CloudFormation with the resource name AWS::RDS::EventSubscription. The following sections describe how to use the resource and its parameters.

Parameters

Explanation in CloudFormation Registry

The AWS::RDS::EventSubscription resource allows you to receive notifications for Amazon Relational Database Service events through the Amazon Simple Notification Service (Amazon SNS). For more information, see Using Amazon RDS Event Notification in the Amazon RDS User Guide.

Frequently asked questions

What is AWS Amazon RDS Event Subscription?

AWS Amazon RDS Event Subscription is a resource for Amazon RDS of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Amazon RDS Event Subscription?

For Terraform, the prancer-io/prancer-terramerra and ag-pinguin/terraform_rds_replication source code examples are useful. See the Terraform Example section for further details.