Forum Discussion
klevak
Nimbostratus
May 15, 2024Using Terraform to update / modify an existing iRule
I could be missing something obvious here. I am attempting to use terraform to update an existing iRule (code below). Every time I run 'apply' I get an error saying: " The requested iRule (/Common...
fpettiford1991
Nimbostratus
Feb 02, 2026Hey I was able to accomplish this and it was pretty simple.
Step 1. Create a Resource block for the existing iRule
resource "bigip_ltm_irule" "my_irule" {
name = "/Common/existing-irule-name"
irule = "" # Leave empty initially
}
Step 2. RUn the import command
terraform import bigip_ltm_irule.my_irule /Common/existing-irule-name
Step 3. Grab the irule contents
terraform state show bigip_ltm_irule.my_irule
From here you can paste this irule into the irule block that we left empty above..Im keeping all my iRule files seperated.
Hope this helps someone.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects