I updated but i am still getting errors.
There are some problems with the configuration, described below.
The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.
**Error:** **Unsupported block type**
on main.tf line 5, in terraform:
5: workspaces {
Blocks of type "workspaces" are not expected here.
**Error:** **Unsupported block type**
on main.tf line 14, in terraform:
14: resource junos_interface "interface_switch_demo" {
Blocks of type "resource" are not expected here.
terraform {
backend "remote" {
organization = "RTR-limited"
}
workspaces {
name = "Juniper-Stage"
}
required_providers {
junos = {
source = "jeremmfr/junos"
version = "1.5.0"
}
}
resource junos_interface "interface_switch_demo" {
name = "ge-0/0/5"
description = "interfaceSwitchDemo"
trunk = true
vlan_members = ["100"]
}
}