Created
May 18, 2020 18:34
-
-
Save kalinon/e2e1dd4372d83f8168c54e506a538525 to your computer and use it in GitHub Desktop.
medium-335312a6349a-02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
MINIOCLUSTER="myminio" | |
VAULT_ID="vault" | |
VAULT_SECRET="F210D489-60B7-46CC-816E-1F8ED823C4FC" | |
# Create the vault bucket | |
mc mb ${MINIOCLUSTER}/vault | |
# Create the vault policy | |
mc admin policy add ${MINIOCLUSTER} vaultACL vault.json | |
# Create the vault user and set its permissions to the ACL | |
mc admin user add ${MINIOCLUSTER} ${VAULT_ID} ${VAULT_SECRET} | |
mc admin policy set ${MINIOCLUSTER} vaultACL user=${VAULT_ID} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment