Skip to content
Hunter edited this page Nov 25, 2021 · 1 revision
gcloud config set project my-project1
gcloud auth activate-service-account --key-file="~/.config/gcp/my.key"

kms

gcloud kms encrypt --location=asia-east1 \
    --keyring=ring1  --key=k2 \
    --ciphertext-file="/tmp/c1" --plaintext-file="/tmp/t1"

gcloud kms decrypt --location=asia-east1 \
    --keyring=ring1 --key=k2 \
    --ciphertext-file="/tmp/c1" --plaintext-file="/tmp/t2"

secret manager

gcloud secrets versions access 1 --secret="test1"
Clone this wiki locally