Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
dblatcher committed Feb 20, 2025
1 parent 92387fa commit e25e3b3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,5 @@ Note, `shared/graphql/schema.graphql` is also used in CDK to form part of the Cl
Occasionally you may want to test the GraphQL queries/mutations directly from the AWS Console. You for which you will need an auth token, you can generate these by running `yarn generate-appsync-auth-token` in the root of the project and selecting CODE or PROD from the prompt.

## Maintenance Tasks
- [managing the email groups in the messaging UI](./users-refresher-lambda/README.md#managing-email-groups)

- [managing the email groups in the messaging UI](./users-refresher-lambda/README.md#managing-email-groups)
19 changes: 11 additions & 8 deletions users-refresher-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,22 @@ On the daily 'full run' we also load the map of groups (_key_: a 'shorthand' for

The set email groups that can be messaged from Pinboard is defined in the AWS Param Store, as mentioned above. To edit the list, you will need AWS console access for the "Workflow" account in [Janus](https://janus.gutools.co.uk/).

From the AWS console, open the *Parameter Store* and find the entry for pinboard groups. There are separate entries for CODE and PROD. The value of the parameter is a JSON string in this format:
From the AWS console, open the _Parameter Store_ and find the entry for pinboard groups. There are separate entries for CODE and PROD. The value of the parameter is a JSON string in this format:

```JSON
{
"digicms": "[email protected]",
"digicms": "[email protected]",
"pinboardHELP": "[email protected]"
}
```

The keys in the object are the display name shown in the Pinboard UI, the values are the email address for the group. When updating the value, please note:
- On CODE we use "[email protected]" as the email address for all groups except "[email protected]". This is so messages on CODE pinboard are not sent to the real recipients
- In JSON, the last entry in an object must NOT have a trailing comma

The groups are updated in the application once per day on the daily 'full run' mentioned above - but you can trigger an update after making your change by:
- opening the *lambda* menu from the AWS console ("Workflow" account)
- open the lambda (`pinboard-users-refresher-lambda-PROD` or `pinboard-users-refresher-lambda-CODE`) from the list
- from the *Test* tab, use the "Test" button to invoke the function (the payload sent to the lambda should be an empty object)
- On CODE we use "[email protected]" as the email address for all groups except "[email protected]". This is so messages on CODE pinboard are not sent to the real recipients
- In JSON, the last entry in an object must NOT have a trailing comma

The groups are updated in the application once per day on the daily 'full run' mentioned above - but you can trigger an update after making your change by:

- opening the _lambda_ menu from the AWS console ("Workflow" account)
- open the lambda (`pinboard-users-refresher-lambda-PROD` or `pinboard-users-refresher-lambda-CODE`) from the list
- from the _Test_ tab, use the "Test" button to invoke the function (the payload sent to the lambda should be an empty object)

0 comments on commit e25e3b3

Please sign in to comment.