- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-05-2024 08:45 AM
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!
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!