Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecated features and syntax in "bgp_settings" #9

Open
JCP13 opened this issue Oct 24, 2022 · 3 comments
Open

deprecated features and syntax in "bgp_settings" #9

JCP13 opened this issue Oct 24, 2022 · 3 comments

Comments

@JCP13
Copy link

JCP13 commented Oct 24, 2022

Greetings Kumaraswamy,

I am trying to test out your module with version of the provider 3.27.0 but running into issues with deprecated features and syntax. I am trying to work through some of the issues but have some challenges in this block 'dynamic "bgp_settings"'. Is it possible that you can update this section? it seems to be a bit involved and there are a number of things that I am not sure about.

Thank you.

@JCP13
Copy link
Author

JCP13 commented Oct 25, 2022

here is the error message:

│ Error: Unsupported argument

│ on .terraform/modules/vpn-gateway/main.tf line 72, in resource "azurerm_virtual_network_gateway" "vpngw":
│ 72: peering_address = var.bgp_peering_address

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

@JCP13
Copy link
Author

JCP13 commented Oct 26, 2022

main.txt
variables.txt

Hi @kumarvna, I have attempted to fix the issue, but I am not well-versed in Terraform.

I am getting this error but not sure what the issue is. The variable is in the Variables.tf, so I am unsure why it can't find it.

│ Error: Unknown variable

│ on ../../modules/vpn-gateway/main.tf line 137, in resource "azurerm_local_network_gateway" "localgw":
│ 137: for_each = var.local_bgp_settings != null ? [true] : []

│ There is no variable named "var".


│ Error: Reference to undeclared resource

│ on ../../modules/vpn-gateway/main.tf line 146, in resource "azurerm_local_network_gateway" "localgw":
│ 146: for_each = try(local_bgp_settings.value["peering_addresses"], local.empty_list)

│ A managed resource "local_bgp_settings" "value" has not been declared in module.vpn-gateway.

I have attached the two files where I made the modifications. Can you please take a look?

Thank you.

@JCP13
Copy link
Author

JCP13 commented Oct 27, 2022

main.txt
variables.txt

Hi @kumarvna, I believe I have figured it out. I no longer get an error and able to provision the VPN Gateway. I have not tested the BGP part yet but hope to do so soon.

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant