Skip to content

Error when terraform plan #25

@igalvarez

Description

@igalvarez

Hi,
I have created terraform.tfvars file:

azure_environment = "AzureCloud"
azure_region = "centralindia"
azure_bootstrap_vm_type = "Standard_D4s_v3"
azure_master_vm_type = "Standard_D8s_v3"
azure_master_root_volume_type = "Premium_LRS"
azure_base_domain_resource_group_name = "dns4ocp-rg"
azure_subscription_id = "xxx"
openshift_version = 4.8
azure_client_id = "xxx"
azure_client_secret = "xxx"
azure_tenant_id = "xxx""
azure_resource_group_name = "ocpaz-rg"
azure_network_resource_group_name = "ocpaz-rg"
azure_extra_tags = "env = isratest"
cluster_name = "isracluster"
base_domain = "xxx"
openshift_pull_secret = "/home/israel/ocpaz-custom1/pull-secret-ocp.txt"
master_count = 3
worker_count = 1
azure_infra_vm_type = "Standard_D4s_v3"
azure_worker_vm_type = "Standard_D8s_v3"
openshift_ssh_key = "xxx"

when I run:
terraform plan

I get these errors:

[israel@x86vm terraform-openshift4-azure]$ terraform plan

│ Warning: Deprecated attribute

│ on main.tf line 74, in locals:
│ 74: rhcos_image = lookup(lookup(jsondecode(data.http.images.body), "azure"), "url")

│ The attribute "body" is deprecated. Refer to the provider documentation for details.


│ Error: Missing required argument

│ on ignition/ignition.tf line 30, in data "azurerm_storage_account_sas" "ignition":
│ 30: permissions {

│ The argument "tag" is required, but no definition was found.


│ Error: Missing required argument

│ on ignition/ignition.tf line 30, in data "azurerm_storage_account_sas" "ignition":
│ 30: permissions {

│ The argument "filter" is required, but no definition was found.


│ Error: Unsupported argument

│ on vnet/internal-lb.tf line 40, in resource "azurerm_lb_backend_address_pool" "internal_lb_controlplane_pool_v4":
│ 40: resource_group_name = var.resource_group_name

│ An argument named "resource_group_name" is not expected here.


│ Error: Unsupported argument

│ on vnet/internal-lb.tf line 48, in resource "azurerm_lb_backend_address_pool" "internal_lb_controlplane_pool_v6":
│ 48: resource_group_name = var.resource_group_name

│ An argument named "resource_group_name" is not expected here.


│ Error: Unsupported argument

│ on vnet/internal-lb.tf line 123, in resource "azurerm_lb_probe" "internal_lb_probe_sint":
│ 123: resource_group_name = var.resource_group_name

│ An argument named "resource_group_name" is not expected here.


│ Error: Unsupported argument

│ on vnet/internal-lb.tf line 134, in resource "azurerm_lb_probe" "internal_lb_probe_api_internal":
│ 134: resource_group_name = var.resource_group_name

│ An argument named "resource_group_name" is not expected here.


│ Error: Unsupported argument

│ on vnet/public-lb.tf line 99, in resource "azurerm_lb_backend_address_pool" "public_lb_pool_v4":
│ 99: resource_group_name = var.resource_group_name

│ An argument named "resource_group_name" is not expected here.


│ Error: Unsupported argument

│ on vnet/public-lb.tf line 107, in resource "azurerm_lb_backend_address_pool" "public_lb_pool_v6":
│ 107: resource_group_name = var.resource_group_name

│ An argument named "resource_group_name" is not expected here.


│ Error: Unsupported argument

│ on vnet/public-lb.tf line 178, in resource "azurerm_lb_probe" "public_lb_probe_api_internal":
│ 178: resource_group_name = var.resource_group_name

│ An argument named "resource_group_name" is not expected here.

I'm using Terraform v1.5.6
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions