Monthly Archives: February 2016

Controlling Amazon EC2 instances with Elixir

Had a need to start, stop, create, and terminate EC2 instances from my Elixir-based Phoenix Framework app. While there isn’t yet a solid EC2 management library for Elixir, there’s a full-on solid one for Erlang called Erlcloud which does just

Posted in Elixir, Phoenix

Phoenix Framework – Setting an associated ID back to nil using a form

When using a Phoenix Framework form, I had a select box on my page which had an option to set a belongs_to value to nil. The form would usually send the ID, but when the nil value is selected, it

Posted in Ecto, Elixir, Phoenix