canonical / s3-integrator

An integrator charm for handling s3 credentials
https://charmhub.io/s3-integrator
Apache License 2.0
1 stars 1 forks source link
data-platform s3

S3-integrator

Charmhub Release Tests

Description

An operator charm providing an integrator for connecting to S3 provides.

Usage

Deploying the S3 Integrator

Charmhub

juju deploy s3-integrator --channel edge

From source

git clone https://github.com/canonical/s3-integrator.git
cd s3-integrator/
lxd init --auto
lxc network set lxdbr0 ipv6.address none
sudo snap install charmcraft --classic
charmcraft pack

Then,

juju deploy ./s3-integrator_ubuntu-20.04-amd64.charm

Adding your S3 Credentials

To deploy your S3 credentials to the application, run the following action:

$ juju run-action s3-integrator/leader sync-s3-credentials access-key=<your_key> secret-key=<your_secret_key>

Configuring the Integrator

To configure the S3 integrator charm, you may provide the following configuration options:

The only mandatory fields for the integrator are access-key secret-key and bucket.

In order to set ca-chain certificate use the following command:

$ juju config s3-integrator tls-ca-chain="$(base64 -w0 your_ca_chain.pem)"

Attributes needs to be specified in comma-separated format.

Configuring the Integrator

To retrieve the S3 credentials, run the following action:

$ juju run-action s3-integrator/leader get-s3-credentials --wait

If the credentials are not set, the action will fail.

To retrieve the set of connection parameters, run the following command:

$ juju run-action s3-integrator/leader get-s3-connection-info --wait

Relations

Relations are supported via the s3 interface. To create a relation:

$ juju relate s3-integrator application

To remove relation a relation:

$ juju remove-relation s3-integrator application

Security

Security issues in the Charmed S3 Integrator Operator can be reported through LaunchPad. Please do not file GitHub issues about security issues.

Contributing

Please see the Juju SDK docs for guidelines on enhancements to this charm following best practice guidelines, and CONTRIBUTING.md for developer guidance.