https://prefect.io logo
Title
m

Matt Delacour

07/28/2022, 8:12 PM
👋 I am still using Prefect 1 Is there any resource regarding how I should deal with different environments (prod / staging / proto)? I guess I can create multiple workspaces but then I have to onboard the same user in multiple places + setup multiple api_keys .... Looking for best practices here 🙏
j

James Sopkin

07/28/2022, 8:18 PM
It is definitely recommended to separate prod and dev environments.
m

Matt Delacour

07/28/2022, 8:22 PM
Do you have a good blog post about how things are organized in general? Because having to duplicate efforts on each workspace looks painful • Create the same user multiple times • Create api key for each user •
prefact auth login
for each tenant with different api_key • etc.
j

James Sopkin

07/28/2022, 8:25 PM
Regarding your other question about tenants vs workspaces- workspaces are a 2.0 concept. Perhaps you can separate prod/staging etc into different projects
m

Matt Delacour

07/28/2022, 8:27 PM
I guess in 1.0 "tenants" are the same as "teams"
Perhaps you can separate prod/staging etc into different projects
What do you mean exactly ?
j

James Sopkin

07/28/2022, 8:31 PM
On your tenant, you would have a prod project, a staging project, and a proto project. You could also add labels to distinguish between these and you could also have separate agents for the different projects
It does seem pretty unnecessary in 1.0 to create multiple tenants to do this
m

Matt Delacour

07/28/2022, 8:33 PM
I see what you mean. So instead of having a project named "my_project", we should have 3 projects named • "my_project_prod" • "my_project_staging" • "my_project_proto" ?
j

James Sopkin

07/28/2022, 8:34 PM
yep
m

Matt Delacour

07/28/2022, 8:35 PM
Cool, will think about it 🤔
👍 1