Mount a file as a volume in Cloud Run | C2C Community

Mount a file as a volume in Cloud Run

  • 28 July 2021
  • 2 replies
  • 332 views

Userlevel 7
Badge +58

@guillaume blaquiere is one of the core team members of the French community group. Yestrerday he wrote an article explaining how we can mount a file as a volume in Cloud Run and read it.

Image source: 
guillaume blaquiere’s article on Medium.com

The recommended tool to manage secrets, with Cloud Run, is Secret Manager. Read here the  convenient integration with Secret Manager Cloud Run proposes.

Read it and tell me your opinion!

 

 

Quiz: do you know what the dash(-), on his code (--data-file=-), stands for?

echo "my secret" | gcloud secrets versions add --data-file=- medium


2 replies

Userlevel 1

That dash means take input from stdin ?

Userlevel 7
Badge +58

That dash means take input from stdin ?

True!

https://cloud.google.com/sdk/gcloud/reference/secrets/versions/add?hl=it_ch

It is a requierd flag. “File path from which to read secret data. Set this to "-" to read the secret data from stdin.”

Reply