Skip to content

Commit a026a22

Browse files
wilbrdtkernicPanel
authored andcommitted
🔥(project) remove unused lambdas
As everything has been migrated out of AWS, lambdas are not used anymore. Removing them from the project.
1 parent e49cdaa commit a026a22

File tree

118 files changed

+1
-35791
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+1
-35791
lines changed

.circleci/config.yml

Lines changed: 0 additions & 564 deletions
Large diffs are not rendered by default.

.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,6 @@ tsconfig.tsbuildinfo
146146
*.tfstate.backup
147147
src/aws/**/state.tf
148148

149-
# Lambda build
150-
dist
151-
node_modules
152-
153-
# Lambda
154-
transmuxed_video
155-
156149
# Ssh keys
157150
.ssh
158151

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Versioning](https://semver.org/spec/v2.0.0.html).
1111
### Removed
1212

1313
- Remove all legacy Cloudfront code and mentions
14+
- Remove all legacy Lambdas
1415

1516
## [5.11.1] - 2025-07-17
1617

Makefile

Lines changed: 0 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ COMPOSE_BUILD = DOCKER_USER=$(DOCKER_USER) COMPOSE_DOCKER_CLI_BUILD=1 DOC
4141
COMPOSE_RUN = $(COMPOSE) run --rm
4242
COMPOSE_RUN_APP = $(COMPOSE_RUN) app
4343
COMPOSE_RUN_CROWDIN = $(COMPOSE_RUN) crowdin crowdin
44-
COMPOSE_RUN_LAMBDA = $(COMPOSE_RUN) --entrypoint "" # disable lambda entrypoint to run command in container
4544
COMPOSE_RUN_MAIL = $(COMPOSE_RUN) mail-generator yarn
4645
COMPOSE_RUN_NODE = $(COMPOSE_RUN) node
4746
YARN = $(COMPOSE_RUN_NODE) yarn
@@ -57,9 +56,7 @@ bootstrap: ## Prepare Docker images for the project
5756
bootstrap: \
5857
env.d/development \
5958
env.d/localtunnel \
60-
env.d/lambda \
6159
build \
62-
build-lambda-dev \
6360
run \
6461
migrate \
6562
i18n-compile-back \
@@ -81,10 +78,6 @@ build-backend-dev: ## build the app container
8178
@$(COMPOSE_BUILD) app;
8279
.PHONY: build-backend-dev
8380

84-
build-lambda-dev: ## build all aws lambda
85-
@bin/lambda build dev development
86-
.PHONY: build-lambda-dev
87-
8881
down: ## Stop and remove containers, networks, images, and volumes
8982
@$(COMPOSE) down
9083
.PHONY: down
@@ -298,125 +291,6 @@ install-webtorrent: ## Build node webtorrent dependencies
298291
@$(COMPOSE_RUN) webtorrent yarn install
299292
.PHONY: install-webtorrent
300293

301-
## -- AWS
302-
303-
lambda-install-dev-dependencies: ## Install all lambda dependencies
304-
lambda-install-dev-dependencies: \
305-
lambda-install-dev-dependencies-complete \
306-
lambda-install-dev-dependencies-configure \
307-
lambda-install-dev-dependencies-convert \
308-
lambda-install-dev-dependencies-medialive \
309-
lambda-install-dev-dependencies-mediapackage \
310-
lambda-install-dev-dependencies-elemental-routing \
311-
lambda-install-dev-dependencies-migrate
312-
.PHONY: lambda-install-dev-dependencies
313-
314-
lambda-install-dev-dependencies-complete: ## Install dependencies for lambda complete
315-
@$(COMPOSE_RUN_LAMBDA) lambda_complete yarn install
316-
.PHONY: lambda-install-dev-dependencies-convert
317-
318-
lambda-install-dev-dependencies-configure: ## Install dependencies for lambda configure
319-
@$(COMPOSE_RUN_LAMBDA) lambda_configure yarn install
320-
.PHONY: lambda-install-dev-dependencies-configure
321-
322-
lambda-install-dev-dependencies-convert: ## Install dependencies for lambda convert
323-
@$(COMPOSE_RUN_LAMBDA) lambda_convert yarn install
324-
.PHONY: lambda-install-dev-dependencies-convert
325-
326-
lambda-install-dev-dependencies-medialive: ## Install dependencies for lambda medialive
327-
@$(COMPOSE_RUN_LAMBDA) lambda_medialive yarn install
328-
.PHONY: lambda-install-dev-dependencies-medialive
329-
330-
lambda-install-dev-dependencies-mediapackage: ## Install dependencies for lambda mediapackage
331-
@$(COMPOSE_RUN_LAMBDA) lambda_mediapackage yarn install
332-
.PHONY: lambda-install-dev-dependencies-mediapackage
333-
334-
lambda-install-dev-dependencies-elemental-routing: ## Install dependencies for lambda elemental routing
335-
@$(COMPOSE_RUN_LAMBDA) lambda_elemental_routing yarn install
336-
.PHONY: lambda-install-dev-dependencies-elemental-routing
337-
338-
lambda-install-dev-dependencies-migrate: ## Install dependencies for lambda migrate
339-
@$(COMPOSE_RUN_LAMBDA) lambda_migrate yarn install
340-
.PHONY: lambda-install-dev-dependencies-migrate
341-
342-
test-lambda: ## Run all aws lambda tests
343-
test-lambda: \
344-
test-lambda-complete \
345-
test-lambda-configure \
346-
test-lambda-convert \
347-
test-lambda-medialive \
348-
test-lambda-mediapackage \
349-
test-lambda-elemental-routing \
350-
test-lambda-migrate
351-
.PHONY: test-lambda
352-
353-
test-lambda-complete: ## test aws lambda complete
354-
@$(COMPOSE_RUN_LAMBDA) lambda_complete yarn test
355-
.PHONY: test-lambda-complete
356-
357-
test-lambda-configure: ## test aws lambda configure
358-
@$(COMPOSE_RUN_LAMBDA) lambda_configure yarn test
359-
.PHONY: test-lambda-configure
360-
361-
test-lambda-convert: ## test aws lambda convert
362-
@$(COMPOSE_RUN_LAMBDA) lambda_convert yarn test
363-
.PHONY: test-lambda-convert
364-
365-
test-lambda-medialive: ## test aws lambda medialive
366-
@$(COMPOSE_RUN_LAMBDA) lambda_medialive yarn test
367-
.PHONY: test-lambda-medialive
368-
369-
test-lambda-mediapackage: ## test aws lambda mediapackage
370-
@$(COMPOSE_RUN_LAMBDA) lambda_mediapackage yarn test
371-
.PHONY: test-lambda-mediapackage
372-
373-
test-lambda-elemental-routing: ## test aws lambda elemental routing
374-
@$(COMPOSE_RUN_LAMBDA) lambda_elemental_routing yarn test
375-
.PHONY: test-lambda-elemental-routing
376-
377-
test-lambda-migrate: ## test aws lambda migrate
378-
@$(COMPOSE_RUN_LAMBDA) lambda_migrate yarn test
379-
.PHONY: test-lambda-migrate
380-
381-
lint-lambda: ## Run linter an all lambda functions
382-
lint-lambda: \
383-
lint-lambda-complete \
384-
lint-lambda-configure \
385-
lint-lambda-convert \
386-
lint-lambda-medialive \
387-
lint-lambda-mediapackage \
388-
lint-lambda-elemental-routing \
389-
lint-lambda-migrate
390-
.PHONY: lint-lambda
391-
392-
lint-lambda-complete: ## run linter on lambda complete function
393-
@$(COMPOSE_RUN_LAMBDA) lambda_complete yarn lint
394-
.PHONY: lint-lambda-complete
395-
396-
lint-lambda-configure: ## run linter on lambda configure function
397-
@$(COMPOSE_RUN_LAMBDA) lambda_configure yarn lint
398-
.PHONY: lint-lambda-configure
399-
400-
lint-lambda-convert: ## run linter on lambda convert function
401-
@$(COMPOSE_RUN_LAMBDA) lambda_convert yarn lint
402-
.PHONY: lint-lambda-convert
403-
404-
lint-lambda-medialive: ## run linter on lambda medialive function
405-
@$(COMPOSE_RUN_LAMBDA) lambda_medialive yarn lint
406-
.PHONY: lint-lambda-medialive
407-
408-
lint-lambda-mediapackage: ## run linter on lambda mediapackage function
409-
@$(COMPOSE_RUN_LAMBDA) lambda_mediapackage yarn lint
410-
.PHONY: lint-lambda-mediapackage
411-
412-
lint-lambda-elemental-routing: ## run linter on lambda elemental routing function
413-
@$(COMPOSE_RUN_LAMBDA) lambda_elemental_routing yarn lint
414-
.PHONY: lint-lambda-elemental-routing
415-
416-
lint-lambda-migrate: ## run linter on lambda complete function
417-
@$(COMPOSE_RUN_LAMBDA) lambda_migrate yarn lint
418-
.PHONY: lint-lambda-migrate
419-
420294
# -- Internationalization
421295

422296
crowdin-download: ## Download translated message from crowdin
@@ -494,9 +368,6 @@ env.d/development:
494368
env.d/localtunnel:
495369
cp env.d/localtunnel.dist env.d/localtunnel
496370

497-
env.d/lambda:
498-
cp env.d/lambda.dist env.d/lambda
499-
500371
h: # short default help task
501372
@echo "$(BOLD)Marsha Makefile$(RESET)"
502373
@echo "Please use 'make $(BOLD)target$(RESET)' where $(BOLD)target$(RESET) is one of:"

README.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -115,28 +115,6 @@ Initialize your `Terraform` config:
115115

116116
The `make init` command will also create an [ECR](https://aws.amazon.com/ecr/) repository. Before going further you have to build and publish the lambda docker image. Unfortunately AWS doesn't allow to use a public image, so you have to host this one on a private ECR instance. Copy the output of the `init` command, you will use them in the next step.
117117

118-
#### Build and publish the lambda image
119-
120-
For this step, we cooked a script to help you build, tag and deploy images. All the scripts are run from the marsha root directory.
121-
122-
🔧 **Before you go further**, you need to create `./env.d/lambda` and replace the relevant values with your own. The `ECR` url is available in the `shared_resources` terraform output you copied earlier. You should use this command to create the file from the existing model:
123-
124-
$ cp ./env.d/lambda.dist ./env.d/lambda
125-
126-
You have to successively run these commands :
127-
128-
Build the image:
129-
130-
$ ./bin/lambda build
131-
132-
Tag the image:
133-
134-
$ ./bin/lambda tag
135-
136-
And then publish it:
137-
138-
$ ./bin/lambda publish
139-
140118
#### Apply all terraform plans
141119

142120
Terraform is split in two parts. The main one, directly in `src/aws` can work on multiple [`Terraform` workspaces](https://www.terraform.io/docs/state/workspaces.html). You will use this feature if you want separate environments (development, staging, preprod and production). We also need some resources available across all workspaces. For this we have an other terraform in `src/aws/shared_resources`.

bin/lambda

Lines changed: 0 additions & 144 deletions
This file was deleted.

bin/test_lambda

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)