You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit `temporal.toml` with your Temporal Cloud namespace address and credentials. In production,
41
58
we'd recommend reading your credentials from a secret store, but to keep this example simple
42
59
the toml file defaults to reading them from keys bundled along with the Lambda code.
43
60
44
-
### 2. Create the IAM role
61
+
### 3. Create the IAM role
45
62
46
63
This creates the IAM role that Temporal Cloud assumes to invoke your Lambda function:
47
64
@@ -52,7 +69,7 @@ This creates the IAM role that Temporal Cloud assumes to invoke your Lambda func
52
69
The External ID is provided by Temporal Cloud in your namespace's serverless worker
53
70
configuration.
54
71
55
-
### 3. (Optional) Enable OpenTelemetry
72
+
### 4. (Optional) Enable OpenTelemetry
56
73
57
74
If you want traces, metrics, and logs, you'll have to attach the ADOT layet to your Lambda function.
58
75
You will need to add the appropriate layer for your runtime and region. See [this page
@@ -67,7 +84,7 @@ Then run the extra setup to grant the Lambda role the necessary permissions:
67
84
68
85
Update `otel-collector-config.yaml` with your function name and region as needed.
69
86
70
-
### 4. Deploy the Lambda function
87
+
### 5. Deploy the Lambda function
71
88
72
89
```bash
73
90
./deploy-lambda.sh <function-name>
@@ -76,7 +93,11 @@ Update `otel-collector-config.yaml` with your function name and region as needed
76
93
This installs Python dependencies, bundles them with your code and configuration files,
77
94
and uploads to AWS Lambda.
78
95
79
-
### 5. Start a Workflow
96
+
### 6. Configure Temporal to be able to invoke your lambda function
97
+
98
+
Refer to the docs [here](https://docs.temporal.io/production-deployment/worker-deployments/serverless-workers/aws-lambda#create-worker-deployment-version).
99
+
100
+
### 7. Start a Workflow
80
101
81
102
Use the starter program to execute a Workflow on the Lambda worker, using
82
103
the same config file the Lambda uses for connecting to the server:
0 commit comments