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

Make our SSM Parameter Store script more robust to underlying JSON schema changes #221

Open
MikeTheCanuck opened this issue Aug 22, 2018 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers Priority: medium

Comments

@MikeTheCanuck
Copy link
Contributor

We've talked about this on Slack as a result of the troubleshooting of #220. The guidance and sample code suggested by @DingoEatingFuzz is an approach like this:

https://gist.github.com/DingoEatingFuzz/3af0514e7c8001bcc0fcb4e42fb033bf

Code hasn't been tested and may not entirely work, but it's a helluva starting place.

An approach like this would ensure two things:

  1. that any further changes to the underlying JSON schema shouldn't break our containers, because this operates on the canonical json output
  2. This way we make only one aws cli request to get everything back

Plus who doesn't prefer python's readability over bash's terse and cryptic nature?

Task: to take this sample code, test it against an environment like the HackOregon CloudFormation approach, and if needed refactor it until it can be a drop-in replacement for get-ssm-parameters.sh in the production-docker-entrypoint.sh script each API project uses.

@MikeTheCanuck MikeTheCanuck added enhancement New feature or request good first issue Good for newcomers Priority: medium labels Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers Priority: medium
Projects
None yet
Development

No branches or pull requests

1 participant