magodo / terraform-provider-restful

Terraform provider to manage RESTful resources
https://registry.terraform.io/providers/magodo/restful
Mozilla Public License 2.0
15 stars 5 forks source link

Add support to configure the resty and set some specific options #27

Closed LaurentLesle closed 1 year ago

LaurentLesle commented 1 year ago

Some API calls require to disable some cookies to prevent access denied during long running deployments.

provider "restful" {
  base_url = "https://management.azure.com"
  security = {
    oauth2 = {
      client_id     = var.client_id
      client_secret = var.client_secret
      token_url     = format("https://login.microsoftonline.com/%s/oauth2/v2.0/token", var.tenant_id)
      scopes        = ["https://management.azure.com/.default"]
    }
  }
 options = {
  disableCookies = true
 }
}