Skip to content

Legacy API provider not expecting ztc_cloud though its required #15

@pp8m5ws5kb-cyber

Description

@pp8m5ws5kb-cyber

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v1.14.3

Affected Resource(s)

All - issue is concerning the ztc provider itself

Terraform Configuration Files

terraform {
  required_providers {
    ztc = {
      source = "zscaler/ztc"
      version = "~> 0.1.0"
    }
  }

}

provider "ztc" {
  username            = var.ZTC_USERNAME
  password            = var.ZTC_PASSWORD
  api_key             = var.ZTC_API_KEY
  ztc_cloud           = var.ZTC_CLOUD
  use_legacy_client   = true
}

Debug Output

Panic Output

Expected Behavior

Actual Behavior

│ Error: Unsupported argument
│
│   on provider.tf line 17, in provider "ztc":17:   ztc_cloud           = var.ZTC_CLOUD
│
│ An argument named "ztc_cloud" is not expected here. Did you mean "ztw_cloud"?

Steps to Reproduce

Configure provider as per documentation

  1. terraform apply

Important Factoids

References

https://registry.terraform.io/providers/zscaler/ztc/latest/docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions