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

ibm_is_instance: different data structure between resource and data source #5827

Closed
sean-freeman opened this issue Nov 28, 2024 · 1 comment · Fixed by #5847
Closed

ibm_is_instance: different data structure between resource and data source #5827

sean-freeman opened this issue Nov 28, 2024 · 1 comment · Fixed by #5847
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure

Comments

@sean-freeman
Copy link

sean-freeman commented Nov 28, 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 other comments that do not add relevant new information or questions, 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

Affected Resource(s)

Resource structure

  • primary_network_attachment:
    • id
    • virtual_network_interface:
      • id
      • primary_ip: ❌ Should NOT be nested under VNI
        • id

Data Source structure

  • primary_network_attachment
    • id
    • virtual_network_interface:
      • id
    • primary_ip
      • id
    • subnet:
      • id

API data structure

POST /instances Create Virtual Server API Response:
https://cloud.ibm.com/apidocs/vpc/latest#create-instance

GET /instances/{id} Retrieve Virtual Server API Response:
https://cloud.ibm.com/apidocs/vpc/latest#get-instance

  • network_attachments/primary_network_attachment - InstanceNetworkAttachmentReference
    • id
    • primary_ip - ReservedIPReference
      • id
    • subnet – SubnetReference
      • id
    • virtual_network_interface - VirtualNetworkInterfaceReferenceAttachmentContext
      • id
  • network_interfaces/primary_network_interface - NetworkInterfaceContextReference
    • id
    • primary_ip - ReservedIPReference
      • id
    • subnet - SubnetReference
      • id

Steps to Reproduce

  1. terraform apply
@github-actions github-actions bot added the service/VPC Infrastructure Issues related to the VPC Infrastructure label Nov 28, 2024
@ujjwal-ibm
Copy link
Collaborator

looking at it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants