-
Notifications
You must be signed in to change notification settings - Fork 686
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
oci_network_load_balancer_backend 404-NotAuthorizedOrNotFound but the backeds are correctly created #1593
Comments
The same probelm occures if i try to use the private ip ocid as target_id:
|
I've found a workaround. Then i've tried to import the resurce with: terraform import module.k3s_cluster.oci_network_load_balancer_backend.k3s_kube_api_backend[1] "networkLoadBalancers/ocid1.networkloadbalancer.oc1.eu-zurich-1.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/backendSets/k3s_kube_api_backend/backends/ocid1.instance.oc1.eu-zurich-1.xxxxxxxxxxxxxxxxxxxxxx:6443" and the import has correctly imported the backend Changing the backend name to $instance_id:$backend_port fix the problem, but this is only a workaround. Also, with this workaround the backand name in the web console is always setted to the instance name. |
UPDATE The value in the name argument can be any kind of string
or
so the name argument is a required argument, the value must be "any kind of string". This is the working code: resource "oci_network_load_balancer_backend" "k3s_kube_api_backend" {
depends_on = [
oci_core_instance_pool.k3s_servers,
]
count = var.k3s_server_pool_size
backend_set_name = oci_network_load_balancer_backend_set.k3s_kube_api_backend_set.name
network_load_balancer_id = oci_network_load_balancer_network_load_balancer.k3s_load_balancer.id
name = data.oci_core_instance_pool_instances.k3s_servers_instances.instances[count.index].display_name
port = var.kube_api_port
target_id = data.oci_core_instance_pool_instances.k3s_servers_instances.instances[count.index].id
} |
Moved name argument to the Required arguments, fixes oracle#1593
Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you. |
Community Note
Terraform Version and Provider Version
Terraform v1.1.6
on linux_amd64
i've tried also oracle/oci module v.4.64.0 and the latest oracle oci module
Affected Resource(s)
oci_network_load_balancer_backend
Terraform Configuration Files
lb.tf
data.tf
instance_pool.tf
Panic Output
If i try to apply again:
Actual Behavior
Backend are correctly created but 404-NotAuthorizedOrNotFound error occured
Steps to Reproduce
Apply this module
The text was updated successfully, but these errors were encountered: