1.0.5 • Published 2 years ago
serverless-ansible-vault v1.0.5
serverless-ansible-vault
Enable the use of vault variables in your serverless configs!
Installation
npm install serverless-ansible-vaultAnd activate it by adding the following configuration to your serverless.yml file:
plugins:
- serverless-ansible-vaultSetup
Requirements
To make use of the serverless-ansible-vault plugin you first have to reference 3 things in the custom section of your serverless.yml file.
custom:
ansibleVault:
path: `path/to/the/ansible/vault` #Required
passwordFile: `path/to/vault/password` #Required
virtualenv: `path/to/ansible/virtualenv` #OptionalAfter this you can now start to reference your vault variables in the provider environment section like this:
provider:
environment:
USERNAME: "{{ vault_username }}"
PASSWORD: "{{ vault_password }}"
LOGIN: "{{ vault_username }}:{{ vault_password }}"Author
Created by Junaide Bhatti.
License
MIT