DataDog / terraform-provider-datadog

Terraform Datadog provider
https://www.terraform.io/docs/providers/datadog/
Mozilla Public License 2.0
399 stars 375 forks source link

[datadog_application_key] Add deprecation warning for importing datadog_application_key resources #2468

Closed jackakeller closed 2 months ago

jackakeller commented 3 months ago

Add a new deprecation warning that Import will no longer be supported for application keys.

=> terraform plan
datadog_application_key.jackakeller-foo-application-import: Preparing import... [id=ed3f601f-94e0-463d-bd37-3867ce24a063]
datadog_application_key.jackakeller-foo-application-import: Refreshing state... [id=ed3f601f-94e0-463d-bd37-3867ce24a063]

Terraform will perform the following actions:

  # datadog_application_key.jackakeller-foo-application-import will be imported
    resource "datadog_application_key" "jackakeller-foo-application-import" {
        id   = "ed3f601f-94e0-463d-bd37-3867ce24a063"
        key  = (sensitive value)
        name = "jackakeller-foo-application-import"
    }

Plan: 1 to import, 0 to add, 0 to change, 0 to destroy.
╷
│ Warning: Deprecated
│
│ The import functionality for datadog_application_key resources is deprecated and will be removed in a future release with prior notice. Securely store your application keys using
│ a secret management system or use the datadog_application_key resource to create and manage new application keys.
╵

See https://developer.hashicorp.com/terraform/language/import