1.0.5 • Published 1 year ago

serverless-ansible-vault v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

serverless-ansible-vault

Enable the use of vault variables in your serverless configs!

Installation

npm install serverless-ansible-vault

And activate it by adding the following configuration to your serverless.yml file:

plugins:
  - serverless-ansible-vault

Setup

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` #Optional

After 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

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago