op runLearned about op run today to pass secrets from 1Password to scripts and commands. This is such a game changer for me! Here’s the link to the documentation: https://developer.1password.com/docs/cli/reference/commands/run/
And here’s an example
op run --env-file tf.env -- terraform init
where tf.env looks like
AWS_ACCESS_KEY_ID="op://MyVault/Terraform/access-key"
AWS_SECRET_KEY="op://MyVault/Terraform/secret-key"
op run replaces those op:// links with the values of the referenced secret and runs terraform init in a sub-process. So slick!