terraform-provider-octopusdeploy
terraform-provider-octopusdeploy copied to clipboard
octopusdeploy_accounts data source warns of deprecation but there is no alternative
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
Just to confirm: I am encountering this warning in 0.9.0. I cannot find an alternative data block to replace it.