Skip to content

Commit

Permalink
WIP: poller-lambdas
Browse files Browse the repository at this point in the history
  • Loading branch information
twrichards committed Nov 4, 2024
1 parent 1d4db0a commit 5d23daf
Show file tree
Hide file tree
Showing 16 changed files with 1,865 additions and 355 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ jobs:
npm run build
zip -FSjr "dist/ingestion-lambda.zip" "dist/handler.js"
- name: Build poller-lambdas
working-directory: poller-lambdas
run: |
npm run build
zip -FSjr "dist/poller-lambdas.zip" "dist/index.js"
- name: Build Newswires app and UI
working-directory: newswires
run: |
Expand All @@ -80,5 +86,7 @@ jobs:
- cdk/cdk.out
ingestion-lambda:
- ingestion-lambda/dist/ingestion-lambda.zip
poller-lambdas:
- poller-lambdas/dist/poller-lambdas.zip
newswires:
- newswires/target/newswires.deb
5 changes: 5 additions & 0 deletions cdk/bin/cdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Newswires } from '../lib/newswires';

const app = new GuRoot();

// FIXME we should probably have a dedicated stack for the Newswires app for e.g. cost explorer purposes (as the App tag needs to be different for riff-raff etc. to differentiate)
const stack = 'editorial-feeds';

const env = {
Expand All @@ -23,12 +24,15 @@ const prodWiresFeeds = new WiresFeeds(app, 'WiresFeeds-PROD', {
stage: 'PROD',
});

// TODO find a way to make the Newswires stacks 'depend on' the WiresFeeds stacks in the generated riff-raff.yaml

new Newswires(app, 'Newswires-CODE', {
env,
stack,
stage: 'CODE',
domainName: 'newswires.code.dev-gutools.co.uk',
enableMonitoring: false,
sourceQueue: codeWiresFeeds.sourceQueue,
fingerpostQueue: codeWiresFeeds.fingerpostQueue,
});

Expand All @@ -38,5 +42,6 @@ new Newswires(app, 'Newswires-PROD', {
stage: 'PROD',
domainName: 'newswires.gutools.co.uk',
enableMonitoring: false,
sourceQueue: prodWiresFeeds.sourceQueue,
fingerpostQueue: prodWiresFeeds.fingerpostQueue,
});
Loading

0 comments on commit 5d23daf

Please sign in to comment.