s

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 1 Imported by: 0

README

S

What is S and why

S is a secrets manager built on top of AWS Parameter Store.

You might be asking why? First thing is I just got sick of creating a .env everytime I clone a repo etc.. also configuring variables in ci/cd ain't fun. Having to keep track and so on.

I just wanted something that worked and sat on top of my own accounts. There are other free tools online that acomplish a similar thing this is just my attempt at an easy maintainable way of doing it.

S Commands

init
s init <prefix> <region> --profile <profile_name>
  • prefix: The prefix for the project your creating
  • region: The AWS region to create the project in
  • profile: The AWS profile to use, uses default when not provided

Initialises s in your repo.

add
s add <name> <value>
  • name: The name of the secret
  • value: The value of the secret

Adds a secret.

update
s update <name> <value>
  • name: The name of the secret
  • value: The value of the secret

Updates a secret.

list
s list

Returns a list of all secrets.

get
s get <name> <value>
  • name: The name of the secret
  • value: The value of the secret

Gets a secret.

delete
s delete <name>
  • name: The name of the secret

Deletes a secret.

export
eval $(s export)

Evalutes the output of s for environment variables.

help
s -h | --help

Shows the helper for s.

How to use

For now I don't use have any official way of distributing s. The latest version can be downloaded from the releases page or you can clone the repo and build from source. The command for building can be seen below:

go build -o build/s

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cli module
packages
go Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL