99designs / aws-vault

A vault for securely storing and accessing AWS credentials in development environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to add a user's access keys non-interactively

djmills64 opened this issue · comments

I tried putting the credentials in a file one item per line and piping this file to "aws-vault add " but it gets:
aws-vault: error: add: inappropriate ioctl for device

Is there any way around this?

A colleague suggested:
AWS_ACCESS_KEY_ID=123 AWS_SECRET_ACCESS_KEY=123 aws-vault add test --env
it worked.