-
Notifications
You must be signed in to change notification settings - Fork 3
/
setcloudenv.example
19 lines (15 loc) · 1005 Bytes
/
setcloudenv.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
TEMPORAL_ENV="<cli_env_name>"
export TEMPORAL_ADDRESS=$(temporal env get --env ${TEMPORAL_ENV} --key address -o json | jq -r '.[].value')
export TEMPORAL_NAMESPACE=$(temporal env get --env ${TEMPORAL_ENV} --key namespace -o json | jq -r '.[].value')
export TEMPORAL_CERT_PATH=$(temporal env get --env ${TEMPORAL_ENV} --key tls-cert-path -o json | jq -r '.[].value')
export TEMPORAL_KEY_PATH=$(temporal env get --env ${TEMPORAL_ENV} --key tls-key-path -o json | jq -r '.[].value')
export USE_CLOUD_API_KEY_AUTH=$(temporal env get --env ${TEMPORAL_ENV} --key use-cloud-api-key-auth -o json | jq -r '.[].value')
# Required if you are running on the CLI, not required for the UI runs.
export TF_VAR_prefix="<your_name>"
# Optional
# export TEMPORAL_CLOUD_API_KEY="<temporal_cloud_api_key>"
# export TEMPORAL_ADDRESS="host.docker.internal:7233" # For Docker workers
# export TEMPORAL_TASK_QUEUE="<task_queue_name>"
# export TEMPORAL_MTLS_DIR="<path_to_mtls_certs>"
# export ENCRYPT_PAYLOADS=true