bigbassroller

bigbassroller

Using AWS EFS in an Elixir Phoenix application locally

I am trying to use EFS to store assets instead of S3 and wondering whats the best way to develop locally?

I spent quite a bit of time getting EFS mounted on my Elastic Beanstalk EC2 instances and finally got it working (pay attention to those security groups!) Now I am trying to get EFS mounted locally, but that is going down a rabbit hole involving AWS VPNs, bastions and on perm providers and no clear path for some midnight code cowboy on his home computer. This is the closest article I’ve found: https://medium.com/@rmonteiro/guide-on-setting-up-home-network-to-an-aws-vpc-via-vpn-e2d95cbe1536. …yikes! thats a lot work!

I am wondering if I should just use the default file system when working locally and switch to EFS when in production?

Does anybody out there have any thoughts or experience with this?

Marked As Solved

al2o3cr

al2o3cr

Never used EFS, but the documentation suggests it works like NFS always has - you mount it in the standard UNIXy ways and then interact with it like any other filesystem.

Big difference (from skimming the FAQ) is that it’s not Internet-accessible like S3 so every byte of assets served from it has to go through your application stack, but that shouldn’t make any difference locally.

Last Post!

bigbassroller

bigbassroller

Thanks for your reply al2o3cr. I am new to NFS and EFS, so its double wammy learning experience for me :sweat_smile:

I think the best solution is to use local file system for local development and use EFS in production. That way don’t have to deal with VPN and things keep secure.

Anybody comes across this and knows a better or has an interesting solution, I am all ears.

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

Other popular topics Top

aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 40165 209
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

We're in Beta

About us Mission Statement