You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform should not update the Common tenant since there was no changes made.
It should return:
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.
Apply complete! Resources: 0 added, 0 changed, 0 destroyed
Actual Behavior
Run again with no modification in the json file: terraform apply
Result is trying to update the Common tenant:
bigip_as3.exampletask: Refreshing state... [id=Sample_non_http_05,Common]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# bigip_as3.exampletask will be updated in-place
~ resource "bigip_as3" "exampletask" {
~ as3_json = jsonencode(
~ {
~ declaration = {
+ Common = {
+ Shared = {
+ class = "Application"
+ template = "shared"
+ testDataCenter = {
+ class = "GSLB_Data_Center"
}
+ testProberPool = {
+ class = "GSLB_Prober_Pool"
+ enabled = true
+ lbMode = "round-robin"
+ members = [
+ {
+ memberOrder = 0
+ server = {
+ use = "testServer"
}
},
]
}
+ testServer = {
+ class = "GSLB_Server"
+ dataCenter = {
+ use = "testDataCenter"
}
+ devices = [
+ {
+ address = "1.2.3.7"
},
]
+ proberPool = {
+ use = "testProberPool"
}
+ proberPreferred = "pool"
+ virtualServers = [
+ {
+ address = "1.2.3.8"
+ port = 5050
},
+ {
+ address = "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
+ port = 5051
},
]
}
}
+ class = "Tenant"
}
id = "GSLB_Sample"
# (3 unchanged attributes hidden)
}
# (3 unchanged attributes hidden)
}
)
id = "Sample_non_http_05,Common"
# (4 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Example of tfstate file where the Common tenant resource is not being added.
Cesar-EF
changed the title
Common tenant is trying to be recreated without modification in the json file
Common tenant is trying to be updated without modification in the json file
Sep 13, 2023
Environment
Summary
Common tenant tries to update after second run of
terraform apply
.Steps To Reproduce
Steps to reproduce the behavior:
Example of resource config:
Run:
terraform apply
Result: It successfully created the resources:
Plan: 1 to add, 0 to change, 0 to destroy.
Example of json that creates A GSLB wide IP (domain) named example.edu. Example json taken from this documentation:
https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/declarations/gslb.html
Expected Behavior
Terraform should not update the Common tenant since there was no changes made.
It should return:
Actual Behavior
Run again with no modification in the json file:
terraform apply
Result is trying to update the Common tenant:
Example of tfstate file where the Common tenant resource is not being added.
The text was updated successfully, but these errors were encountered: