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

NOREF: Retrieve & use Airtable parameters directly #487

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Apophenia
Copy link
Contributor

Changing the SSM service to return the parameter value only - I don't think there's a lot of value in what comes back with the rest of the object and my instinct is that it should more closely resemble the API for grabbing the parameter as an environment variable.

@Apophenia Apophenia marked this pull request as draft December 20, 2024 15:56
Comment on lines +33 to +36
if os.environ['ENVIRONMENT'] == 'production':
self.airtable_auth_token = get_parameter('arn:aws:ssm:us-east-1:946183545209:parameter/drb/production/airtable/pub-backlist/api-key')
else:
self.airtable_auth_token = get_parameter('arn:aws:ssm:us-east-1:946183545209:parameter/drb/qa/airtable/pub-backlist/api-key')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend just passing in the path /airtable/pub-backlist/api-key and the get_parameter function can figure out the environment and add the prefix!

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