Skip to content

Commit ffb0421

Browse files
committed
Initial commit
1 parent 46a73bd commit ffb0421

File tree

6 files changed

+2353
-2
lines changed

6 files changed

+2353
-2
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ guard-%:
66

77
.PHONY: install build test publish release clean
88

9-
install: install-python install-hooks
9+
install: install-python install-hooks install-node
1010

1111
install-python:
1212
poetry install
1313

1414
install-hooks: install-python
1515
poetry run pre-commit install --install-hooks --overwrite
1616

17+
install-node:
18+
npm ci
19+
1720
pre-commit: git-secrets-docker-setup
1821
poetry run pre-commit run --all-files
1922

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,36 @@ This will ensure that your VSCode bash terminal prompts you for your GPG key pas
4242

4343
You can cache the gpg key passphrase by following instructions at https://superuser.com/questions/624343/keep-gnupg-credentials-cached-for-entire-user-session
4444

45+
### Setup
46+
47+
Ensure you have the following lines in the file .envrc
48+
49+
```bash
50+
export AWS_DEFAULT_PROFILE=prescription-dev
51+
```
52+
53+
Once you have saved .envrc, start a new terminal in vscode and run this command to authenticate against AWS
54+
55+
```bash
56+
make aws-configure
57+
```
58+
59+
Put the following values in:
60+
61+
```text
62+
SSO session name (Recommended): sso-session
63+
SSO start URL [None]: <USE VALUE OF SSO START URL FROM AWS LOGIN COMMAND LINE ACCESS INSTRUCTIONS ACCESSED FROM https://myapps.microsoft.com>
64+
SSO region [None]: eu-west-2
65+
SSO registration scopes [sso:account:access]:
66+
```
67+
68+
This will then open a browser window and you should authenticate with your hscic credentials
69+
You should then select the development account and set default region to be eu-west-2.
70+
71+
You will now be able to use AWS and SAM CLI commands to access the dev account. You can also use the AWS extension to view resources.
72+
73+
When the token expires, you may need to reauthorise using `make aws-login`
74+
4575
### CI Setup
4676

4777
The GitHub Actions require a secret to exist on the repo called "SONAR_TOKEN".

0 commit comments

Comments
 (0)