- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 11:37 AM
Hi,
Is it possible to prevent the message "This has been created from Orchestrator", and the "Terraform" icon from being displayed in ACI when configuring objects using Terraform? I have a scenario where I want to initially create most objects using Terraform but turn the deployment over to an end customer who will be using the UI to configure going forward.
Solved! Go to Solution.
- Labels:
-
ACI
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2023 05:59 AM
You can set the annotation as an argument in the resources (just set it to ""). Here is an example for the tenant resource:
resource "aci_tenant" "example" {
name = "demo_tenant"
description = "from terraform"
annotation = ""
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 11:58 AM
{
"totalCount": "1",
"imdata": [{
"fvAp": {
"attributes": {
"annotation": "orchestrator:terraform",
"descr": "",
"dn": "uni/tn-L2_Transit/ap-SONOFI",
"name": "DEMO",
"nameAlias": "",
"ownerKey": "",
"ownerTag": "",
"prio": "unspecified",
"userdom": ":all:common:"
}
}
}
]
}
So once you delete that annotation, the icon and message go away. I have not tried just manually setting the annotation to Null in TF but that should work as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 12:11 PM
Thanks. I'm new to TF but I don't see that annotation in my TF files. Is it added automatically by TF? I'll keep looking around as I may have missed it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2023 05:59 AM
You can set the annotation as an argument in the resources (just set it to ""). Here is an example for the tenant resource:
resource "aci_tenant" "example" {
name = "demo_tenant"
description = "from terraform"
annotation = ""
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 07:08 AM
Thanks @Marcel Zehnder and tmagill@convergeone.com !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 05:54 AM
It doesn't work in my environment. Terraform v1.5.4, Provider aci v2.9.0 and Application Policy Infrastructure Controller Version: 5.2(4e)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 11:29 PM
Even if you provide an empty string as the annotation argument you see the icon? If yes, try to set the annotaion argument as "dummy" or some other string. Not sure if it works, but it's worth a try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 05:49 AM
I've set annotation argument as "dummy" and I don't see the icon but if you save the object in xml I see annotation="dummy". If I change iafter apply annotation="" and make terraform plan the messages is
No changes. Your infrastructure matches the configuration.
