Vault secrects in Vagrant?

I am using the [aws provisioner plugin](https://github.com/mitchellh/vagrant-aws) to start an ec2 instance. First I have to use the aws cli to generate credentials that are pasted into the Vagrant file. This gets tiring and in order to automate it I started reading up on [Vault](https://www.vaultproject.io/). After a few hours I know more about Vault but not much about how to use it with Vagrant. Are they not intended to be used together?

Thanks

1 thought on “Vault secrects in Vagrant?”

  1. My best guess.

    Try putting the secrets into a vault Kv store. Then use your vagrant provisioner script to use the vault API to pull those credentials.

    Also you can provision EC2 obstacles with terraform and cloudformation… Might be easier for ya!

    Reply

Leave a Comment