Deploys Tapir to Azure Container Apps with supporting services.
The following services are deployed:
- rg.tf - The resource group to contain all resources.
- db.tf - CosmoDB and a SQL Container for Tapir.
- sa.tf - A Storage Account for hosted Terraform modules/providers.
- vault.f - Holds the various secrets Tapir needs when launching the container (SSO keys, SA keys, etc).
- tapir.tf - Creates a Container App for Tapir.
Azure AD (or another provider) must be configured for Tapir before it will launch.
See variables.tf
for auth_endpoint
, auth_client_id
and auth_client_secret
.
The above are only present after creating an App Registration.
You will also need to:
- Configure Redirect URIs to include:
https://<DOMAIN>.uksouth.azurecontainerapps.io/management
https://<DOMAIN>.uksouth.azurecontainerapps.io/providers
https://<DOMAIN>.uksouth.azurecontainerapps.io/
- Enable the
Id Tokens
flow type and only the current directory is enabled. - Create an App Role with a display name of
groups
, type ofUsers/Groups
and a value ofadmin
. - Configure the token to include
openid
,profile
andemail
scopes (aka API Permissions). - Configure the token to include
groups
optional claim. - Alter the admin Entra Id group to have the
admin
App role. - Create a client secret and store securely!