Skip to content

aliases for common bucket operations #106

@outscale-rce

Description

@outscale-rce

Feature Summary

There are a couple of octl storage commands that are a bit verbose and would benefit from simpler aliases.

Problem to Solve

  1. Enable / disable bucket versioning

Currently this requires using the raw API command:

octl storage api PutBucketVersioning \
  --Bucket fumble-tfstate \
  --VersioningConfiguration.Status Enabled

(or Suspended to disable).

  1. Enable / disable bucket encryption

Similarly, enabling encryption currently requires:

octl storage api PutBucketEncryption \
  --Bucket fumble \
  --ServerSideEncryptionConfiguration.Rules.0.ApplyServerSideEncryptionByDefault.SSEAlgorithm AES256

Proposed Solution

octl storage bucket versioning enable <bucket>
octl storage bucket versioning disable <bucket>
octl storage bucket encryption enable <bucket>
octl storage bucket encryption disable <bucket>

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions