Skip to content

Add event subcommand (rc event add/list/remove) for bucket notification configuration #54

@simon-escapecode

Description

@simon-escapecode

Summary

rc has no command for managing bucket event notification subscriptions. There is no way to configure which buckets send notifications to which targets using the CLI.

Motivation

Bucket event notification rules are stored as per-bucket metadata and must be set via the S3 PutBucketNotificationConfiguration API. There is no config file or environment variable alternative. Without a CLI command, users must call the S3 API directly to manage notification rules.

Proposed solution

Add an event subcommand with three actions:

rc event add   <alias/bucket> <arn> [--event <filter>]
rc event list  <alias/bucket>
rc event remove <alias/bucket> <arn>

This maps directly to GetBucketNotificationConfiguration and PutBucketNotificationConfiguration in the AWS S3 SDK, which is already a dependency.

A PR with a working implementation is forthcoming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions