Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
d70a0f6
feat: scaffold app with cdk
tstephen-nhs Mar 19, 2026
210dffa
chore: migrate statemachine to JSONata
tstephen-nhs Mar 20, 2026
9623b1c
chore: further json path -> jsonata
tstephen-nhs Mar 24, 2026
5bf1c0a
chore: log and continue if TC params not present
tstephen-nhs Mar 24, 2026
82d5762
fix: no allow TS imports as still on node module resolution
tstephen-nhs Mar 24, 2026
bc6a8fa
fix: typo
tstephen-nhs Mar 24, 2026
95bb922
fix: make dependencies
tstephen-nhs Mar 24, 2026
5de5ddf
test: minimal fail-fast cdk synth test
tstephen-nhs Mar 24, 2026
14d44ca
docs: example .env file
tstephen-nhs Mar 24, 2026
2c8a610
Merge branch 'main' into aea-6257-cdk-shell
wildjames Mar 24, 2026
8a97d94
use the new parameters CDK construct
wildjames Mar 24, 2026
0eaa310
Merge branch 'main' into aea-6258-ssm-params
wildjames Mar 24, 2026
ec9384e
Add cdk deploy workflows
wildjames Mar 24, 2026
5bc2131
Update package lock
wildjames Mar 24, 2026
2c636b1
Fix package lock
wildjames Mar 24, 2026
33bab37
Remove NodeJS reference
wildjames Mar 24, 2026
a00bb64
Include cdk constructs as file
wildjames Mar 25, 2026
320868a
Update package lock
wildjames Mar 25, 2026
06a5096
Dummy the secrets layer for unit tests
wildjames Mar 25, 2026
196e479
No tool versions in this repo
wildjames Mar 25, 2026
428e5bc
Tweaking the deployment. Add a gate for release notes and tagging so …
wildjames Mar 25, 2026
1dbcd45
Add tool versions for cdk deployment
wildjames Mar 25, 2026
ec68119
Bootstrap tool versions same as FHIR facade
wildjames Mar 25, 2026
0c2fac3
fix: non-prod spine and ss hosts
tstephen-nhs Mar 24, 2026
0244a2f
Don't tar the tool versions, and do use npx rather than npm, c.f. fhi…
wildjames Mar 25, 2026
4c493b5
I was looking at an old branch of tracker - use the modern one
wildjames Mar 25, 2026
0762426
Gate release notes and stuff for CDK for now
wildjames Mar 25, 2026
65ba015
Merge branch 'aea-6257-cdk-shell' into aea-6258-ssm-params
wildjames Mar 25, 2026
4ba7c75
Migrate params.yml to cdk
wildjames Mar 25, 2026
0935791
Fix unit tests
wildjames Mar 25, 2026
0e013fb
Update the constructs to support default env vars
wildjames Mar 26, 2026
906f89d
Merge main
wildjames Mar 26, 2026
ceb87b4
Stateful stack, stateless stack.
wildjames Mar 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/actions/install_dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Install dependencies"
description: "Install dependencies including caching of npm packages"

inputs:
npm-required:
description: "Set to true if npm dependencies are already installed"
required: false
default: "true"
GITHUB_TOKEN:
description: "GitHub token to access private npm packages"
required: true

runs:
using: "composite"
steps:
- name: Setting up .npmrc
if: ${{ inputs.npm-required == 'true' }}
env:
NODE_AUTH_TOKEN: ${{ inputs.GITHUB_TOKEN }}
shell: bash
run: |
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "@nhsdigital:registry=https://npm.pkg.github.com" >> ~/.npmrc

- name: Cache npm dependencies
if: ${{ inputs.npm-required == 'true' }}
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7
with:
path: ./node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

- name: make install
if: ${{ inputs.npm-required == 'true' }}
shell: bash
run: make install
65 changes: 65 additions & 0 deletions .github/workflows/cdk_package_code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: cdk package code

on:
workflow_call:
inputs:
pinned_image:
type: string
required: true

jobs:
package_code:
runs-on: ubuntu-22.04
container:
image: ${{ inputs.pinned_image }}
options: --user 1001:1001 --group-add 128
defaults:
run:
shell: bash
permissions:
id-token: write
contents: read
packages: read
steps:
- name: copy .tool-versions
run: |
cp /home/vscode/.tool-versions "$HOME/.tool-versions"
cp /home/vscode/.tool-versions ./.tool-versions

- name: Checkout code
uses: actions/checkout@v5

- name: Setting up .npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "@nhsdigital:registry=https://npm.pkg.github.com" >> ~/.npmrc

- name: make install
run: |
make install
make compile

- name: download the get secrets lambda layer
run: |
make download-get-secrets-layer

- name: "Tar files"
run: |
tar -cf artifact.tar \
packages \
node_modules \
package.json \
package-lock.json \
tsconfig.defaults.json \
tsconfig.build.json \
Makefile \
poetry.lock \
pyproject.toml

- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
name: upload build artifact
with:
name: build_artifact
path: artifact.tar
Loading
Loading