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

Guide doc samples contain outdated syntax

Open skermajo opened this issue 2 years ago • 0 comments
trafficstars

Using the guide documentation examples, as written, results in invalid terraform.

For example, the guide has blocks like below in a number of places:

terraform {
    required_providers {
        octopusdeploy = {
            source = OctopusDeployLabs/octopusdeploy
        }
    }
}
provider "octopusdeploy" "unscoped" {
  address    = "https://octopus.example.com"
  api_key    = "API-XXXXXXXXXXXXX"
}

Which result in the errors below:

╷
│ Error: Invalid source
│
│   on main.tf line 4, in terraform:
│    4:             source  = OctopusDeployLabs/octopusdeploy
│
│ Source must be specified as a string.
╵
╷
│ Error: Extraneous label for provider
│
│   on main.tf line 9, in provider "octopusdeploy" "unscoped":
│    9: provider "octopusdeploy" "unscoped" {
│
│ Only 1 labels (name) are expected for provider blocks.

skermajo avatar Oct 18 '23 04:10 skermajo