Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
416 stars 204 forks source link

Auto detect IaC provider based on files in infra folder #564

Open jongio opened 2 years ago

jongio commented 2 years ago

Right now we'll require setting the infra provider in azure.yaml

Instead of doing that,

Let's inspect the infra folder.

If bicep files, then use bicep, if tf files, then use tf, if both, then prompt the user to update the azure.yaml file.

ellismg commented 2 years ago

What about just making bicep the default and having terraform be something you have to opt into, instead of this file system sniffing?

jongio commented 2 years ago

@ellismg that is what we have today. I like the idea of the user doing less work and azd sniffing as a convention