I'd like to use Azure Container Apps (ACA) and avoid AKS management
my understanding is that I can create an Azure Container App Environment (ACE) in TF without creating any ACA instances. Then I could use the AzureContainerApps@1 task to deploy my containers to the ACE.
assuming this is all correct, I'm still struggling with how I get secrets from my Key Vault into my ACA instance.
I'm reading store-secret-value-in-container-apps and I noticed they don't even show an option for using the ADO task.
Is what I'm trying to do possible? Where are some decent docs?
TL/DR - I'm really trying to avoid defining my ACA Instance(s) in Terraform. TF is a tool for creating infrastructure.... NOT managing deployments
If it is suitable for you to use a Dapr component to link your (Azure Container) App to Key Vault, you would define your infrastructure like this:
https://github.com/dapr-in-prod/samples/tree/main/chapter-2/infra/aca-terraform
A Dapr component to reference Key Vault:
A Key Vault with a consumer identity assigned:
A separate App deployment with what ever you choose (e.g. Azure CLI) which binds the consumer identity to the App https://github.com/dapr-in-prod/samples/blob/main/chapter-2/apps/simple-js/aca-deploy.sh:
Then you could use a secret simply like in https://github.com/dapr-in-prod/samples/blob/main/chapter-2/apps/simple-js/index.js:
Even if you would not want to use Dapr, the elements in the repository shown should give you a general idea on how to link and consume KV secrets in an Azure Container App.