Skip to content

Instantly share code, notes, and snippets.

@koduki
Last active December 22, 2019 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koduki/b9fa69d969102066cd3855dd6dafe8d1 to your computer and use it in GitHub Desktop.
Save koduki/b9fa69d969102066cd3855dd6dafe8d1 to your computer and use it in GitHub Desktop.

GCEでデフォルトのサービスアカウント名を取得する

$ curl "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email" -H "Metadata-Flavor: Google"
gsu-xxx@xxxxx.iam.gserviceaccount.com

berglasによる暗号化

TLS_KEY=berglas://${BUCKET_ID}/tls-key?destination=tempfile berglas exec irb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment