Manages SingleSignOn on the datadog Monitor.
resource "azurerm_resource_group" "example" {
name = "example-datadog"
location = "West US 2"
}
resource "azurerm_datadog_monitor" "example" {
name = "example-monitor"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
datadog_organization {
api_key = "XXXX"
application_key = "XXXX"
}
user {
name = "Example"
email = "abc@xyz.com"
}
sku_name = "Linked"
identity {
type = "SystemAssigned"
}
}
resource "azurerm_datadog_monitor_sso_configuration" "example" {
datadog_monitor_id = azurerm_datadog_monitor.example.id
single_sign_on_enabled = "Enable"
enterprise_application_id = "XXXX"
}
The following arguments are supported:
datadog_monitor_id
- (Required) The Datadog Monitor Id which should be used for this Datadog Monitor SSO Configuration. Changing this forces a new Datadog Monitor SSO Configuration to be created.
single_sign_on_enabled
- (Required) The state of SingleSignOn configuration. Possible values are Enable
and Disable
.
enterprise_application_id
- (Required) The application Id to perform SSO operation.
name
- (Optional) The name of the SingleSignOn configuration. Defaults to default
.In addition to the Arguments listed above - the following Attributes are exported:
login_url
- The SingleSignOn URL to login to Datadog org.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the SingleSignOn on the datadog Monitor.read
- (Defaults to 5 minutes) Used when retrieving the SingleSignOn on the datadog Monitor.update
- (Defaults to 30 minutes) Used when updating the SingleSignOn on the datadog Monitor.delete
- (Defaults to 30 minutes) Used when deleting the SingleSignOn on the datadog Monitor.SingleSignOn on the Datadog Monitor can be imported using the signle sign on resource id
, e.g.
```shell terraform import azurerm_datadog_monitor_sso_configuration.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Datadog/monitors/monitor1/singleSignOnConfigurations/default