terraform-provider-octopusdeploy icon indicating copy to clipboard operation
terraform-provider-octopusdeploy copied to clipboard

octopusdeploy_accounts data source warns of deprecation but there is no alternative

Open nathanscottdaniels opened this issue 2 years ago • 1 comments

Describe the bug When using the octopusdeploy_accounts data source, plans get a Deprecated Resource warning stating Use an account-specific resource instead and it goes on to list various account resources like octopusdeploy_token_account, etc. But this isn't a resource, it's a data source! And there are no type-specific account data sources, there's just octopusdeploy_accounts.

Steps to reproduce Create a terraform plan with a octopusdeploy_accounts data source. run terraform plan See warning.

Expected behavior No warnings

Logs and other supporting information

╷
│ Warning: Deprecated Resource
│
│   with module.resources.data.octopusdeploy_accounts.k8s_account,
│   on ../modules/common/k8s.tf line 1, in data "octopusdeploy_accounts" "k8s_account":
│   1: data "octopusdeploy_accounts" "k8s_account" {
│
│ Use an account-specific resource instead (i.e. octopusdeploy_aws_account,
│ octopusdeploy_azure_service_principal,
│ octopusdeploy_azure_subscription_account, octopusdeploy_ssh_key_account,
│ octopusdeploy_token_account, octopusdeploy_username_password_account).
╵

Environment and versions:

  • OS: Windows
  • Terraform Version: latest
  • Octopus Terraform Provider Version: latest

nathanscottdaniels avatar Jun 21 '22 16:06 nathanscottdaniels

Just to confirm: I am encountering this warning in 0.9.0. I cannot find an alternative data block to replace it.

paulturner-pg avatar Nov 11 '22 13:11 paulturner-pg