-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #188 from nationalarchives/manually-trigger-consig…
…nment-export Instructions for manually triggering consignment export
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
manual/development-process/manually-trigger-consignment-export.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Manually Trigger Consignment Export Step Function | ||
|
||
**NOTE**: Before manually triggering a **judgment** consignment export double check with the Find Case Law (FCL) team that the user has not re-attempted the transfer to prevent duplicate judgments being published | ||
|
||
In some circumstances it may be necessary to manually trigger a consignment export, for example: | ||
* Consignment export failure; | ||
* Legitimate request from another Digital Archiving service for a re-export | ||
|
||
## Use AWS Console to manually execute Consignment Export Step Function | ||
1. Retrieve the relevant consignment id for the consignment to trigger the export for | ||
2. Log into the relevant AWS account | ||
3. Go to the TDRConsignmentExport{env} step function | ||
4. Click `Start Execution` and add the relevant json into the dialog box: | ||
``` | ||
{ | ||
"ConsignmentId": "{consignment id for consignment}" | ||
} | ||
``` | ||
5. Enter the a name for the new execution into the dialog box in the following form: `{initials}-{consignment id for consignment}` | ||
6. Click `Start execution` | ||
|
||
## Use AWS CLI to manually execute Consignment Export Step Function | ||
1. Retrieve the relevant consignment id for the consignment to trigger the export for | ||
2. Ensure have relevant credentials set to execute the step function | ||
3. Run the following command: | ||
``` | ||
$ aws cli start-execution --state-machine-arn {arn of the step function} \ | ||
--name {initials}-{consignment id for consignment} \ | ||
--input "input": "{\"ConsignmentId\" : \"{consignment id for consignment}\"}" | ||
``` | ||
|
||
Full details of the `start-execution` command can be found here: https://docs.aws.amazon.com/cli/latest/reference/stepfunctions/start-execution.html |