Forum Discussion
Using Terraform to update / modify an existing iRule
Hey 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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