Azure / terraform-azure-container-apps

A Terraform module to deploy a container app in Azure
https://github.com/Azure/terraform-azure-container-apps
35 stars 22 forks source link

Support for KEDA Scaler #34

Closed VincentSchmid closed 8 months ago

VincentSchmid commented 8 months ago

Is there an existing issue for this?

Description

I would find it helpful if I could add a KEDA scalers to the container app. As of my understanding currently this would have to be done using azapi

New or Affected Resource(s)/Data Source(s)

azapi_update_resource

Potential Terraform Configuration

containers = [
          {
            name   = "github-runner"
            memory = "0.5Gi"
            cpu    = 0.25
            image  = "..."
            env = [
              ...
            ],
            scale = {
              rules = [
                {
                  name = "github-runner-rule",
                  custom = {
                    type = "github-runner"
                    metadata = {
                      githubAPIURL = "https://api.github.com"
                      owner = "your-github-owner"
                      runnerScope = "org"
                      repos = "your-repo-name"
                      labels = "your-runner-labels"
                      targetWorkflowQueueLength = "1"
                      applicationID = "your-application-id"
                      installationID = "your-installation-id"
                    }
                  }
                }
              ]
            }
          }
        ]

References

No response