Initial Github Setup
To use Github for your config source, read on.
Create a new private repository in Github. Let’s call it
KeydraConfiguration
.Clone your new repo locally. Click the Clone button in your new repo, and paste into your terminal.
git clone git@github.com:<your Github org or username>/keydraconfiguration.git
cd keydraconfiguration
From your repository in your browser, click
Settings
from your profile avatar in the top right corner.Choose
Developer settings
>Personal access tokens
>Generate new token
.Give the token a name, all
repo
permissions, then clickGenerate token
.
You’ll be shown a password, which you’ll only see once! In another tab, login to the AWS Console and navigate to the
Secrets Manager
service.Click the orange
Store a new secret
button.
- Choose a secret type of
Other type of secrets
, and add a plaintext secret as follows (substituting your details).
{
"password": "<the token from step 4>",
"username": "<your github username>"
}
You can leave encryption settings as default, or update to your needs. Click
Next
.Call your secret
keydra/github
.Auto rotation is not required (Keydra will do this), so just click
Next
on the next screen, thenStore
on the one after.