Terraform with OnePassword
Why?
When you use Terraform, such as postgresql_role
on AWS
an official document like this
as you can see, there are password sections in the example.
which means all people who have access to the Terraform repository will be able to see the password.
we can change this to Input Variables (AKA environment variables)
but if environment variables are hard to sync with all DevOps members.
so to synchronize all configurations, we can consider OnePassword as Environment Variable Injector
How?
Official Document - Use the 1Password Terraform provider
there are two ways to use
connect server
1Password CLI
we will look into 1Password CLI
1Password CLI
install CLI
(Optional) 1Password Service Accounts
you don't know your company use Service Accounts or not? you can check here you don't have permssion? then type this on your DevOps collegues computer
$ echo $OP_SERVICE_ACCOUNT_TOKEN
setup vault (key) list
after type this command they will ask
sign-in address
email
secret key
password
and demand run command
after all this check
Last updated
Was this helpful?