Terraspace Google Secret Manager: Don’t Commit Secrets to Git, Instead Use Secrets Manager

Terraspace Google Secret Manager: Don’t Commit Secrets to Git, Instead Use Secrets Manager

January 4, 2022

Show you how to use Google Secret Manager with Terraspace. This allows to you to not have any secret information like passwords in your Terraform source code.

CLI Commands

In the video, we mainly focused on learning and using the Google Console. Once you get used to it, here was also some useful CLI Commands:

gcloud secrets create demo-dev-pass
gcloud secrets create demo-dev-user
echo -n bob > /tmp/demo-dev-user.txt
echo -n secret1 > /tmp/demo-dev-pass.txt
gcloud secrets versions add demo-dev-user --data-file=/tmp/demo-dev-user.txt
gcloud secrets versions add demo-dev-pass --data-file=/tmp/demo-dev-pass.txt
gcloud secrets versions access latest --secret demo-dev-pass
gcloud secrets versions access latest --secret demo-dev-user

Links

Explore lesson as part of a learning path

Get full access to these great resources

All for less than the price of coffee a day

35 courses
242 lessons
39+ hours

Get started with BoltOps Learn now and get access to easy and powerful lessons

BoltOps Tools