Terraform Error:Invalid Credential

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Terraform Error:Invalid Credential

L1 Bithead

Hello,

 

I'm trying to run my first Terraform:

 

terraform {
required_providers {
panos = {
source = "PaloAltoNetworks/panos"
version = " 1.11.1"
}
}
}
provider "panos" {
hostname = var.panos_hostname
username = var.panos_username
password = var.panos_password
}

variable "panos_hostname" {
type = string
default = "192.168.1.101"
}

variable "panos_username" {
type = string
default = "admin"
}

variable "panos_password" {
type = string
default = "mypassword"
}

data "panos_system_info" "ngfw_info" { }

output "the_info" {
value = data.panos_system_info.ngfw_info

 

 

Terraform init works, but when I lunch Terraform plan I get:

 

Error: Invalid Credential

│ with provider["registry.terraform.io/paloaltonetworks/panos"],
│ on get-system-info.tf line 9, in provider "panos":
│ 9: provider "panos" {

 

Terraform v1.7.4
on linux_amd64
+ provider registry.terraform.io/paloaltonetworks/panos v1.11.1

 

 

Can you help me please?

Thank you!

 

0 REPLIES 0
  • 436 Views
  • 0 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!