This template sets up a basic AWS RDS export task using a snapshot, S3 bucket, IAM role, and KMS key.

Terraform Template

resource "aws_rds_export_task" "example" {
  export_task_identifier = "example"
  iam_role_arn = "aws_iam_role.example.arn"
  kms_key_id = "aws_kms_key.example.arn"
  s3_bucket_name = "aws_s3_bucket.example.id"
  source_arn = "aws_db_snapshot.example.db_snapshot_arn"
}