Caution
DEPRECATED, use https://github.com/temporal-sa/temporal-cloud-proxy instead
Set the following environment variables, e.g:
export TEMPORAL_ADDRESS=my-namespace.my-account.tmprl.cloud:7233
export TEMPORAL_TLS_CERT=/path/to/tls.crt
export TEMPORAL_TLS_KEY=/path/to/tls.keygo run main.goThe proxy server will listen on 127.0.0.1:7233
Go to your favorite Temporal sample from any of the samples repos. Update the client parameters to set your namespace, e.g. my-namespace.my-account (see SDK specific examples below).
After the above change, run the sample as documented. It will now run against Temporal Cloud, through the proxy!
c, err := client.Dial(client.Options{
Namespace: "my-namespace.my-account",
})WorkflowClient client = WorkflowClient.newInstance(service,
WorkflowClientOptions.newBuilder().setNamespace("my-namespace.my-account").build());const client = new Client({
connection,
namespace: 'my-namespace.my-account',
});client = await Client.connect("localhost:7233",
namespace="my-namespace.my-account")var client = await TemporalClient.ConnectAsync(new("localhost:7233")
{
Namespace = "my-namespace.my-account",
});