Parameterizing Ion configuration


#1

How would we parameterize the configuration for ions? For example, we have multiple Datomic databases - one each developer. How would we configure a lambda to use one database or another?

In our current development workflow, we would set environment variables for lambdas but there doesn’t seem to be a parallel concept for ions.


#2

@stu has mentioned using say the Parameter Store from AWS Systems Manager. I’m just about to start playing with it myself. To ‘root’ your vars you could transact something into the DB (which i’m less than thrilled with lol), or perhaps read an ENV tag off of the instance with the ec2 api


#3

Thanks. That makes sense except for one case: Which database should the client connect to? Maybe this just isn’t an issue in real use of Ions.


#4

Actually it’s a good question lol. I think the answer is ultimately ‘it depends’. if you’re doing a system/app per env (dev,test,etc) then you could always use the same DB name(s).