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

Unwrap function call in bash secrets script #2809

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

kenoir
Copy link
Contributor

@kenoir kenoir commented Jan 9, 2025

What does this change?

For wellcomecollection/platform#5870

This change "unwraps" the call to extract the secret from secrets manager. For some reason this was causing the secret retrieval to fail when run in a lambda environment.

I've tested this in AWS and this change causes the initialisation to suceed.

How to test

  • Deploy the change using this script.
  • Test the change behaves as expected by testing with the "relation_embedder" custom event in the AWS console.

The "relation_embedder" custom event was created by dumping the json encoded output of the post_to_rie.py script to stdout and saving that in the AWS Lambda console.

How can we measure success?

Lambda deploys and runs successfully.

Have we considered potential risks?

The 2024-11-18 pipeline is not in production use, the risk is minimised.

@kenoir kenoir requested a review from a team as a code owner January 9, 2025 17:27
@kenoir kenoir self-assigned this Jan 9, 2025
@kenoir kenoir force-pushed the rk/unwrap-function-call branch from df60259 to 6ac1d00 Compare January 10, 2025 10:51
@kenoir kenoir enabled auto-merge (squash) January 10, 2025 10:58
@kenoir kenoir merged commit ab5625e into main Jan 10, 2025
5 checks passed
@kenoir kenoir deleted the rk/unwrap-function-call branch January 10, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants