Testing / CICD with Prefect and IAC
----
Hi guys 👋 👋 👋,
Hope you're all well! I'm currently working on a prefect cloud deployment using pulumi to declare the underlying workpool in AWS ECS. Looking for some guidance on testing as we want to test all changes in CI / pull requests to main. We can spin up and down the pulumi infra on a pull request due to it's idempotency and thus have multiple branches open at once. We were hoping to do the same with the deployment of the prefect orchestrator itself as well. For this the thought was to create a new workspace for testing. If so, is it possible to create a workspace via api request, we will also be using the pro account?
If this isn't possible we were planning on deploying prefect locally during CI via a docker-compose setup and deploying the flows etc. into that for testing. Any resources / documentation on this would also be appreciated if this is a suggested method.
Cheers,
Mark