Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Externalize NIHMS api token parameter name #127

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions pass-nihms-loader/nihms-token-refresh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ To run the token refresh RPA, the following needs to be passed to the docker ima
`NIHMS_USER` : The ERA Commons login username
`NIHMS_PASSWORD` : The ERA Commons login password
`NIHMS_OUTFILE` : The full path to the file to write the new token
`NIHMS_API_TOKEN_PARAM_NAME` : The name to use for the NIHMS API Token parameter in the parameter store

If you are setting the token into AWS Parameter Store, the script assumes that the needed aws cli authentication are in
place such as passing the AWS env vars or assumed roles.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export AWS_PAGER=""

aws ssm put-parameter \
--name "NIHMS_API_TOKEN" \
--name $NIHMS_API_TOKEN_PARAM_NAME \
--type "SecureString" \
--value file://$NIHMS_OUTFILE \
--overwrite
Loading