-
Notifications
You must be signed in to change notification settings - Fork 29
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
v4 Upgrade Guide? #140
Comments
Hey @blakelthaus should be a no-op upgrade if all you want to do is update the gem. No internal changes on how the gem works were made. The v4 is a marketing technique on how we can use containers in future projects. See details here in the CHANGELOG.md https://github.com/customink/lamby/blob/master/CHANGELOG.md To reiterate, update at will, but if you want to modernize, there are two layers at which you can do so. The first is the way to use the Lamby gem.
The second is how you use the containers for your dev, CI, and CD. The cookiecutter project pull request here details all that. Remember there is a commit at the bottom too that should have been part of the PR. This outlines lots of ways you can update your containers from Ruby 2.7 (from Amazon) to any container. I used official Ruby images since, but your mileage may vary. The key points are outlined in the PR. So an upgrade for folks may be switching to new images keeping 2.7 and then upgrading ruby from there. But in general:
The internals will be different for folks depending on how much they kept the orig cookiecutter patterns. Does that help? |
Hey @metaskills , Thank you, this info is super helpful, managed to upgrade to v4 just by upgrading the Gem and forgot to close the request. Glad I didn't though because your info on the ruby upgrades in the pull request will come in handy as we are still just using 2.7 atm. One thing I did run into when deploying is that the Also, I'm currently working on updating our deployment pipeline and I wanted to see if you have any suggestions for instantiating Secrets Manager Secrets as environment variables? I am realized the AWS CDK has deprecated the ability to create secure string params and we will be deploying our app to multiple environments and don't particularly want to be manually creating the DB SSM params in every account. If not no worries, just figured I would ask while we are here :) Thanks again, and really appreciate all your work on Lamby, it is an awesome tool! |
That was a big breaking change. I'm happy the switch to Crypteia was easy!
Yes, that should be Crypteia too. Have you seen this issue? There seems to be a few ways forward and that SSM stuff looked interesting. |
Sweet, gonna be digging into this a little bit more tomorrow! Will try to follow up with whatever I end up doing! Thanks again! |
Update, couldn't manage to get the SSM Path to work for pulling AWS Secrets Manager Secrets. I ended up just writing some code in application.rb to pull the Secret and initialize for now. After doing this I've run into the issue that all of my environment variables for Crypteia are no longer pulling from SSM. Spent the better half of the afternoon trying to figure out why to no avail, made sure that my lambdas have ssm permissions and tried a just about every implementation of Crypteia from the README. When trying to use the ENV Variables I just get the string x-crypteia-ssm:/VARIABLE_NAME. Any tips for debugging this? |
Hard to say, were the ENV variables working prior to code you added to application.rb? If so, I'd have to see that code. In ruby ENV enumerable methods like |
☝🏼 Fixed a few typos. |
Yes, that is helpful, thank you. Ended up being a total bonehead move on my part. Accidentally moved the Crypteia setup into the wrong Dockerfile, makes the move to one Dockerfile all that much more attractive. |
Hi, we are currently using Lamby v3 for a rails application and I am interested in upgrading to v4 but I can't seem to find anything on how one might go about that. Any plans for an upgrade guide doc??
The text was updated successfully, but these errors were encountered: