https://prefect.io logo
Title
t

TS

02/18/2023, 2:11 PM
@Marvin How to programmatically create Service Accounts and Customs Roles in Prefect 2?
m

Marvin

02/18/2023, 2:12 PM
It looks like you're trying to programmatically create Service Accounts and Customs Roles in Prefect 2. The best way to do that is by using the Prefect REST API. You can find the documentation for this process [here](https://docs.prefect.io/api-ref/rest-api-reference/). To access the API's functions, first go to the details page for a deployment and select
Run
, then select
Custom
. Under
Parameters
, select
Custom
. Provide the parameters for the Service Account and Customs Roles, then select
Save
. Finally, select
Run
to start the flow run with these custom parameters. I hope that's what you were looking for. If you need any more help with this, don't hesitate to ask!