:waves: I’m looking at deploying my dockerized `me...
# docker
d
waves I’m looking at deploying my dockerized
meltano
app to AWS ECS. Anyone have good suggestions on an architecture for this? I’m new to both
meltano
and ECS, but here’s what I’ve come up with so far: • create db.t3.micro RDS postgres instance as the meltano metadata DB • launch short-lived containers, which run a
meltano elt
command, then exit (initially using ECS scheduled tasks, eventually airflow once I’ve got that set up) • use EFS to save the logs from the short-lived containers • have one long-running container for the meltano UI. This will also use EFS so that it has access to the logs from the short-lived containers I don’t plan on triggering ELTs from the UI, btw. Any issues with that or other suggestions?
d
That all sounds reasonable to me! I assume you've seen https://meltano.com/docs/production.html?
d
I have, ty!
c
@dean_morin this is exactly what I’m working on except I don’t think I’ll bother with the UI container
I’m not bothering with EFS, cloudwatch logs out of the container are fine
My docker approach is:
One git repo that codebuild turns into one docker image. This repo has all our taps and (redshift) target in it. We schedule runs of this container using AWS Batch. Each schedule is a single tap/target elt. It uses Chamber to hydrate the env vars for the tap and target in question into the container specifically for that run.
I’m happy to share all my git code and cloudformation if you want to DM while we work this out
FYI I’m using Fargate too
Ah, I just made a gist so everyone can review: https://gist.github.com/chriskl/495ff766f9dfa8e8f6fcd00fae6e58f3
Note I haven’t added rds yet
d
Nice, thanks @chris_kings-lynne!
Do you not find the UI useful at all?
d
@chris_kings-lynne I think it'd be great to get that added to the docs as a tutorial! Do you think it's ready or would it need some more feedback/iteration?
c
Still in iteration…
@dean_morin tbh I’ve not used the UI much. we need to have a code-first approach. the catch with the ui box is i worry about its capacity to scale as a single box
(if the actual elts are running on that box too)
also it’s currently a bit of effort to secure it
I’ve improved it further now with and rds instance and some other tricks
it’ll be ready to include as a guide soon enough