Skip to content

Unable to set annotation to empty #1352

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

Open
pv2b opened this issue May 13, 2025 · 2 comments
Open

Unable to set annotation to empty #1352

pv2b opened this issue May 13, 2025 · 2 comments

Comments

@pv2b
Copy link

pv2b commented May 13, 2025

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

Terraform Version

Terraform v1.4.6
on windows_amd64

  • provider registry.terraform.io/ciscodevnet/aci v2.16.0

APIC version and APIC Platform

  • V 6.0(7e) on-prem

Affected Resource(s)

  • aci_attachable_access_entity_profile

Terraform Configuration Files

terraform {
  required_providers {
    aci = {
      source = "CiscoDevNet/aci"
      version = "2.16.0"
    }
  }
}

provider "aci" {
  username = "REDACTED"
  password = "REDACTED"
  url      = "https://REDACTED/"
  insecure = true
}

resource "aci_attachable_access_entity_profile" "annotation_repro" {
    name                    = "aaep-annotation-test"
    annotation = ""
}

Debug Output

Panic Output

Expected Behavior

The aci_attachable_access_entity_profile object should be created with an empty annotation.

Actual Behavior

The aci_attachable_access_entity_profile object is created with the annotation "orchestrator:terraform".

Steps to Reproduce

  1. terraform apply
  2. Look at the object in the MIT and notice that the annotation is there

Important Factoids

References

@pv2b
Copy link
Author

pv2b commented May 13, 2025

Workaround: Set annotation = "dummy" to get rid of the warning in the APIC GUI

@akinross
Copy link
Collaborator

akinross commented May 13, 2025

Hi @pv2b,

Unfortunately this is a limitation with SDKv2 which we cannot resolve and is present in all resources that have not been migrated to terraform plugin framework. We are currently working on migrating resources to plugin framework. This is described in the migration guide, which also addresses the behaviour you are experiencing: https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/guides/migration#allowing-empty-input-for-attributes

See related issues: #806 which contains a link to netascode/terraform-aci-nac-aci#39

Furthermore I am not sure what you mean with get rid of the warning in the APIC GUI? Do you mean the icon that indicates that object is configured by terraform?

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

2 participants