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
A GitHub template repository for building and deploying custom [Lithops](https://lithops-cloud.github.io/) Lambda runtimes via CI — no local Docker required.
3
+
A GitHub template repository for building and deploying [Lithops](https://lithops-cloud.github.io/) Lambda runtimes for [Cubed](https://github.com/cubed-dev/cubed) via CI — no local Docker required.
4
4
5
-
When you push changes to `requirements.txt`, GitHub Actions builds a Docker image with your dependencies and deploys it as a Lambda container runtime.
5
+
When you push changes to `requirements.txt`, GitHub Actions builds a Docker image with your dependencies and deploys it as a Lambda container runtime named `cubed-runtime`.
6
6
7
7
## Prerequisites
8
8
9
9
- An AWS account
10
10
- A GitHub account
11
+
- The [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)
11
12
12
13
## Setup
13
14
@@ -17,47 +18,51 @@ Click **Use this template** → **Create a new repository**.
17
18
18
19
### 2. Bootstrap AWS
19
20
20
-
You need an IAM role that GitHub Actions can assume via OIDC. Create the GitHub OIDC identity provider in your AWS account (if not already present), then create a role with a trust policy scoped to your repo:
Run this once from your local machine. Replace `YOUR_ORG` with your GitHub username or organisation (e.g. `octocat`) and `YOUR_REPO` with the name you gave this repository.
The role needs permissions for ECR, Lambda, S3, and (optionally) CodeBuild.
31
+
> **Already have a GitHub OIDC provider?** Use `--parameter-overrides GitHubOrg=YOUR_ORG GitHubRepo=YOUR_REPO CreateOIDCProvider=false` to skip creating one.
32
+
33
+
This creates a GitHub OIDC identity provider (if one doesn't already exist) and an IAM role scoped to your repository. When it completes, retrieve the role ARN:
34
+
35
+
```bash
36
+
aws cloudformation describe-stacks \
37
+
--stack-name cubed-lithops-github-actions \
38
+
--query 'Stacks[0].Outputs[0].OutputValue' \
39
+
--output text
40
+
```
34
41
35
42
### 3. Add the secret
36
43
37
44
In your repo: **Settings → Secrets and variables → Actions → New repository secret**
0 commit comments