Prerequisites
- Terraform >= 1.6.0
- AWS CLI configured with credentials
- AWS Bucket
- Azure Account
Download the CLI
First you’ll want to download the CLI much like we do in the quickstart, this is not changed. We will have our server url later on though obviously, so don’t login yet.Create Azure Native App
Then we’ll want to create a native app. Sign into azure, then navigate toMicrosoft Entra ID.



Set Up Terraform Files
Next, we’ll want to navigate to a new directory. We’ll create three files: main.tf, variables.tf, and dev.tfvars Lets start with our dev.tfvars:Get AWS Resources
To get your vpc run:
Deploy Infrastructure
Now from the root of this directory we can run the first apply, after this we’ll get the cloudfront domain and we can log in:Update Configuration
Now we have to add this with https:// to our tfvars file as ourOPENTACO_PUBLIC_BASE_URL, if you’ve been following along it should be the only value missing.
We also need to add https://your-instance.cloudfront.net/oauth/oidc-callback to our redirect URIs in Azure, this can be found under “Manage” -> “Authentication”
Your result should look like this:

Login
Now with our service ready, we can runtaco login and set our server to be the same value as our OPENTACO_PUBLIC_BASE_URL. For reference I used https://d2xr3at38awj4b.cloudfront.net/
