CiscoDevNet / terraform-provider-aci

Terraform Cisco ACI provider
https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs
Mozilla Public License 2.0
91 stars 101 forks source link

Import aci_leaf_access_bundle_policy_group (DCNE-206) #1289

Closed Alexpf20210007 closed 1 month ago

Alexpf20210007 commented 1 month ago

Community Note

Terraform Version

1.5.7 1.9.7

APIC version and APIC Platform

5.2(8h) and on-prem

Affected Resource(s)

Here is the example import block: import { to = aci_leaf_access_bundle_policy_group.example["example_vpc"] id = "uni/infra/funcprof/accbundle-example_vpc" }

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. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp

Debug Output

Panic Output

Expected Behavior

Resource should be imported with no change.

Actual Behavior

  1. terraform apply Terraform plan shows that the aep is going to be set to null. Terraform apply actually sets the aep to null.

    Important Factoids

References

akinross commented 1 month ago

Hi @Alexpf20210007,

Thank you for raising this issue, I have had a quick look and it seems that these relational are not set as computed attributes. I need to have a look at the reason why this is deviating from other relational attributes.

I will mark the issue as a bug and will add to the to do items.