Priyan Chandrapala

11/03/2020, 5:14 PM
Hello Everyone! We are using Prefect cloud. We have dev and prod environments on separate EC2 instances. Each env has an agent configured and we can see 2 agents/ 2 flows for dev and prod in Prefect cloud. My question is how do we know for sure the prod flow will always run the job in the prod EC2 instance? Is there a possibility of the Prod flow running the job on dev EC2 and vice versa. cc @Adrien Boutreau

Raphaël Riel

11/03/2020, 7:43 PM
Hi @Priyan Chandrapala I have the same requirement and I managed this by putting the same label on both the Agent and on the Flow.
Result on my end. The “TESTING-RRIEL” Agent will never pick-up the “PROD” Flow.
upvote 1

Priyan Chandrapala

11/04/2020, 8:57 AM
@Raphaël Riel This is exactly what I wanted to know, Thanks you so much 🙏