Crates.io | actfv |
lib.rs | actfv |
version | 0.3.0 |
source | src |
created_at | 2023-06-10 15:49:50.472537 |
updated_at | 2023-06-21 22:45:40.108453 |
description | Take `.aws/credentials` as input and write it into a Terraform compatible `.tfvars` file. |
homepage | |
repository | https://github.com/zendril/aws-creds-to-tfvars/ |
max_upload_size | |
id | 886944 |
size | 33,305 |
Take .aws/credentials
as input and write it into a Terraform compatible .tfvars
file.
In some work scenarios, the aws credentials time out in a very short amount of time. This forces a new aws login, and then those credentials need to make it into terraform.
This utility allows running terraform and passing in a --var-file that contains these secrets. Make sure this file is outside of your version control or add it to .gitignore so you don't accidentally commit your aws credential information.
It will find and print out the following:
Usage: actfv.exe [OPTIONS] <SOURCE_FILE_PATH> <TARGET_FILE_PATH>
Arguments:
<SOURCE_FILE_PATH> Source aws credentials file. Ex: ~/.aws/credentials
<TARGET_FILE_PATH> Target file. Ex: mysecret.tfvars
Options:
-p, --profile <PROFILE> Watch the source file constantly for changes [default: default]
-w, --watch Watch the source file constantly for changes
-h, --help Print help
-V, --version Print version