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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

data source in oci_network_load_balancer_network_load_balancers should have attribute reference items before accessing any attributes internal to network_load_balancer_collection #2105

Open
hjain28 opened this issue May 3, 2024 · 2 comments
Labels
bug In-Progress Terraform Team is working on the reproduce & fix

Comments

@hjain28
Copy link

hjain28 commented May 3, 2024

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version and Provider Version

Affected Resource(s)

data "oci_network_load_balancer_network_load_balancers" "name" {
#Required
compartment_id = abc
display_name = "xyz"
state = "ACTIVE"
}

for ip address to refer it should be
data.oci_network_load_balancer_network_load_balancers.network_load_balancers_ips.network_load_balancer_collection[0].items[*].ip_addresses

rather than
data.oci_network_load_balancer_network_load_balancers.network_load_balancers_ips.network_load_balancer_collection[0].ip_addresses

items attribute was missing

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. 
# Please remove any sensitive information from configuration files before sharing them. 

Debug Output

Panic Output

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

@hjain28 hjain28 added the bug label May 3, 2024
@tf-oci-pub tf-oci-pub added the In-Progress Terraform Team is working on the reproduce & fix label May 3, 2024
@tf-oci-pub
Copy link
Member

Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.

@aseerapu
Copy link

aseerapu commented May 3, 2024

@hjain28 ,
I want to understand the concern here:

  1. data.oci_network_load_balancer_network_load_balancers.network_load_balancers_ips.network_load_balancer_collection[0].ip_addresses is this working and you are suggesting that structure is incorrect? why do you think that structure is incorrect?
  2. data.oci_network_load_balancer_network_load_balancers.network_load_balancers_ips.network_load_balancer_collection[0].ip_addresses with this ip address fetch is failing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug In-Progress Terraform Team is working on the reproduce & fix
Projects
None yet
Development

No branches or pull requests

3 participants