tvl-depot/corp/ops/yandex/creds.fish
Vincent Ambo c7392b3c6b chore(corp/ops): move terraform config into subfolder
Change-Id: Iad5ad8d9a48c300faf2e4be7003879656817b518
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8495
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2023-04-24 10:56:40 +00:00

5 lines
406 B
Fish

export YC_TOKEN=(yc iam create-token)
export YC_CLOUD_ID=(yc config get cloud-id)
export YC_FOLDER_ID=(yc config get folder-id)
export AWS_ACCESS_KEY_ID="YCAJE6eRLY8Az-9kveNRtz4sh"
export AWS_SECRET_ACCESS_KEY=(yc kms symmetric-crypto decrypt --name tvl-credentials --cloud-id b1ggu5m1btue982app12 --folder-name default --ciphertext-file encrypted-state-secret.key --plaintext-file /dev/stdout | head -n1)