You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Public Subnet with allowed ingress and egress Firewall rules to deploy the instances to or a Private Subnet connected to the internet via a NAT Gateway
Steps
Set your default GCP Project to the Project in which the instance will be deployed to via gcloud auth application-default login
Create a VPC and Subnet that have external internet access
Create a Work Queue in Prefect Cloud that the agent will be associated with
Run terraform apply from your local machine
Pass in requested variables
Wait for the Work Queue to become Healthy in the Prefect Cloud UI (Typically within 5 minutes)
You should now be able to run Deployments against your new Prefect Agent
Note that the VM has only Docker and Prefect installed by default. Other possible python modules may need to be added by updating the prefect-agent.sh.tpl file to include the installation of other python modules.