Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
4 years agoexport specific secret value as an environment variable
Hello 1Password Community :)
I am trying to fetch and export a specific secret value as an environment variable:
what I tried: - Note that I replaced the actual gcp location with [gcp location]...
Former Member
4 years agoHello @"Horia.Culea_1P" ,
I do not think that the secret in question is hosted within a vault folder, because when I run
op read op://gcp/bla/iam/jw-airflow-serviceaccount
, I get the following error:
could not read secret op://gcp/bla/iam/xm-airflow-serviceaccount: could not get item gcp/bla: "gcp" isn't a vault in this account. Specify the vault with its ID or name.
and when I run op read op://gcp/bla/iam/xm-airflow-serviceaccount/secret
(the only thing that is present in the concerned OP folder is secret), I get the following:
too many '/': secret references should match op://<vault>/<item>[/<section>]/<field>
I am checking this with the devops team as we speak.
Thank you for your time.
Respectfully,
Maher.