I am getting the following error when I apply my terraform config. I can successfully SSH into the juniper switch with the same SSH key.
What am I missing. My config is below.
terraform {
required_providers {
junos = {
source = "jeremmfr/junos"
version = "1.5.0"
}
}
}
variable "ipv4" {
default = "10.91.60.2"
}
variable "key" {
default = "/Users/eridavis/Documents/terraform-config/juniper/id_rsa_pem"
}
variable "user" {
default = "local-admin"
}
provider "junos" {
# Configuration options
ip = var.ipv4
sshkeyfile = var.key
username = var.user
}
resource junos_interface "interface_switch_demo" {
name = "ge-0/0/5"
description = "interfaceSwitchDemo"
trunk = true
vlan_members = ["100"]
}