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

FastConnect with Azure doesn't work #117

Open
Reply-emgargano opened this issue Oct 23, 2023 · 0 comments
Open

FastConnect with Azure doesn't work #117

Reply-emgargano opened this issue Oct 23, 2023 · 0 comments

Comments

@Reply-emgargano
Copy link

In the ""oci_core_virtual_circuit" "azure_fastconnect_virtual_circuit"" resource of the "main.tf" file of the "fastconnect" module, the condition for creating a FastConnect with Azure ExpressRoute is:

count = var.fastconnect_provider == "Azure" ? 1 : 0

where "var.fastconnect_provider" is a variable passed to the module.
In the same resource block the "provider_service_id" parameter is valued as:

provider_service_id = data.oci_core_fast_connect_provider_service.fast_connect_provider_service.id

that is defined in the file "datasources.tf" as:

data "oci_core_fast_connect_provider_service" "fast_connect_provider_service" {
provider_service_id = lookup(element(data.oci_core_fast_connect_provider_services.fast_connect_provider_services.fast_connect_provider_services, index(data.oci_core_fast_connect_provider_services.fast_connect_provider_services.fast_connect_provider_services.*.provider_name, var.fastconnect_provider)), "id")
}

Specifically for Azure the result is: "Microsoft Azure" instead of "Azure".
So the word "Azure" used as condition to create the FastConnect is wrong. Need to be "Microsoft Azure"

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