Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

govuk-one-login/life-events-platform

Repository files navigation

Vulnerabilities Coverage Maintainability Rating Security Rating

Digital Identity Live Events Platform

Cross governmental data sharing platform, to simplify data acquisition and sharing in an event driven way.

The project is paused, to get in contact whilst it's in this state, please email Life Events Platform Feedback.

Documentation

Techdocs for this service are available here.

Working with SAM

Setup

To set up sam and be able to run it in the correct environment, run the following commands:

Run these

brew install jenv
echo '# Add jenv to PATH and initialise' >> ~/.zshrc
echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(jenv init -)"' >> ~/.zshrc
echo '' >> ~/.zshrc

brew install aws-sam-cli

brew tap homebrew/cask-versions
brew install corretto17

Restart terminal then run

jenv add /Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/
jenv global corretto64-17.0.8.1

Restart terminal then run in the project top directory

sam build

Deploying

To deploy our SAM to the dev environment, please create your own configuration and then apply with that. To create your own configuration, modify and add the following to samconfig.toml. This should then be committed and tracked in our git, so that we maintain a history of these stacks.

[dev-<your-name>.deploy.parameters]
capabilities = "CAPABILITY_NAMED_IAM"
confirm_changeset = true
resolve_s3 = true
region = "eu-west-2"
stack_name = "<your-name>-lep"
s3_prefix = "<your-name>-lep"
parameter_overrides = "Environment=\"dev\" VpcStackName=\"vpc\" Developer=\"<your-name>\""

Once you have added this, you can then run the below while logged into the dev environment via SSO to deploy to dev:

sam build
sam deploy --config-env dev-<your-name>

Architecture

Architecture decision records start here

Glossary

See TechDocs

Licence

MIT License