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

FSPT-190 Get the account store URI from the parameter store #218

Merged

Conversation

sfount
Copy link
Contributor

@sfount sfount commented Dec 11, 2024

Just point to the new store, this will likely become scheduled job on
the main app to reduce moving parts, fine for it to be fixed for now

Previous commit (fetching from SSM doesn't appear to be supported by the lambda resource in the addons):

This should allow the environment variable to be retrieved from the param store at the time that this is run.

Note that similar to an ECS task definition this will only set the environment for the lambda at the time that this is run, the lambda will then use that value unless its deployed again (which presumably happens a lot less than the apps).

If we wanted to guarantee the lambda was using the latest references to stores in the param store (unlikely as we're reducing our data stores down to one database) we could use a lambda extension layer as described in:
https://docs.aws.amazon.com/systems-manager/latest/userguide/ps-integration-lambda-extensions.html

Disclaimer: I haven't tried this and have no idea if it even makes sense.

Just point to the new store, this will likely become scheduled job on
the main app to reduce moving parts, fine for it to be fixed for now
@sfount sfount force-pushed the FSPT-190-get-account-store-host-from-param-store branch from 55b4de2 to 1f253e2 Compare December 18, 2024 14:09
@sfount sfount marked this pull request as ready for review December 18, 2024 14:09
@samuelhwilliams samuelhwilliams merged commit 174be09 into main Dec 18, 2024
3 checks passed
@samuelhwilliams samuelhwilliams deleted the FSPT-190-get-account-store-host-from-param-store branch December 18, 2024 23:42
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