Cloud Development Kit (CDK) TypeScript implementation to deploy Azure Kubernetes Service (AKS)
See the blog post markwarneke.me
Install the dependency providers from cdktf.json
.
{
"language": "typescript",
"app": "npm run --silent compile && node main.js",
"terraformProviders": [
"azurerm@~> 2.0.0"
]
}
cdktf get
Export the used service principal in environment variables as environment variables
export AZ_SP_CLIENT_ID=''
export AZ_SP_CLIENT_SECRET=''`
Run the cdktf
az login
cdktf synth
cdktf diff
cdktf deploy