Hi Team, Is it possible to run an agent for two different workspaces for one container? Can we have multiple profiles inside a container? I don't think it is possible, because the Prefect CLI will be pointing to a specific workspace, but I thought I'd ask instead of just spinning up two ECS instances.
✅ 1
a
Anna Geller
10/27/2022, 3:42 PM
ECS tasks (and really containers in general) are meant to run one process/application so I would recommend to run one container/ECS task for each agent corresponding to each workspace
Anna Geller
10/27/2022, 3:44 PM
AWS best practice is to use different AWS accounts to separate dev and prod environments and this would be easy to accomplish if you would leverage a separate Prefect Cloud workspace each corresponding to a different AWS environment
makes also things much easier to test due to environment parity and separation
🙏 1
c
Chris Gunderson
10/27/2022, 3:45 PM
Thanks for your help on this topic. This question came up and I didn't want to say it wasn't possible without being certain.
💯 1
a
Anna Geller
10/27/2022, 3:46 PM
everything is possible in theory, the question is: "should you do it, though" 😂
💯 2
Anna Geller
10/27/2022, 3:47 PM
much easier to have a separation between environments/containerized processes
🙌 1
c
Chris Gunderson
10/27/2022, 3:48 PM
Thanks for clearing that up. That was my first thought, but I wanted to see if it was possible and what the suggestion would be.