https://prefect.io logo
Title
b

Ben Welsh

01/26/2022, 2:09 PM
What is the most straightforward example of creating your first simple cloud agent that can run a cloud registered flow without any help from my laptop?
a

Anna Geller

01/26/2022, 2:18 PM
Are you asking: what type of agent can you set up quickly to run your workflows on remote infrastructure rather than agent running on your laptop? If so, it’s hard to give a clear single answer since it depends on what infrastructure/cloud provider your company/team is using. All agents are straightforward to set up and can be started using “`prefect agent TYPE start --label YOUR_LABEL -k YOUR_API_KEY`”. You could e.g. spin up a small EC2 instance with a local or Docker agent to get started.
b

Ben Welsh

01/26/2022, 2:20 PM
Gotcha. Bridging that gap would be very helpful for a newbie looking to stand something up.
a

Anna Geller

01/26/2022, 2:22 PM
what is your infrastructure? we have agent templates on Azure
b

Ben Welsh

01/26/2022, 2:27 PM
Google Cloud
a

Anna Geller

01/26/2022, 2:28 PM
in that case you could e.g. spin up a KubernetesAgent on GKE using:
prefect agent kubernetes install -k API_KEY | kubectl apply --namespace=my-namespace -f -