about summary refs log tree commit diff
path: root/corp/ops/yandex/creds.fish
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-04-21T16·25+0300
committertazjin <tazjin@tvl.su>2023-04-24T10·56+0000
commitc7392b3c6b99bffb06965c81c7bf273371ce813e (patch)
tree98374bc74f4cebe09fcd4ad0901d015ea0ab596a /corp/ops/yandex/creds.fish
parent111e1d38e5ac177bcf4defe70aee1e853206bc6d (diff)
chore(corp/ops): move terraform config into subfolder r/6110
Change-Id: Iad5ad8d9a48c300faf2e4be7003879656817b518
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8495
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'corp/ops/yandex/creds.fish')
-rw-r--r--corp/ops/yandex/creds.fish5
1 files changed, 5 insertions, 0 deletions
diff --git a/corp/ops/yandex/creds.fish b/corp/ops/yandex/creds.fish
new file mode 100644
index 000000000000..2985b2880864
--- /dev/null
+++ b/corp/ops/yandex/creds.fish
@@ -0,0 +1,5 @@
+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)