Forum Discussion
RavinderSingh13
Altocumulus
Nov 10, 2025Terraform AS3 code for GTM Only.
Hello All, I am really really suffering here :( Have been looking for GTM ONLY code in AS3 form, need a simple code hardcoded values will also work. I have seen documentation and couldn't see e...
RavinderSingh13
Altocumulus
Nov 20, 2025Hello Jeff_Granieri Greetings.
I have created following code in terraform to create DC, GTM and then VM instances in them.
This works fine for creating things from Scratch but have issues mentioned below.
resource "bigip_as3" "gtm_configuration" {
provider = bigip.burwoodgtm
as3_json = jsonencode({
class = "AS3"
action = "deploy"
persist = true
declaration = {
class = "ADC",
schemaVersion = "3.41.0",
id = "GSLB_Sample",
Common = {
class = "Tenant",
Shared = {
class = "Application",
template = "shared",
testDataCenter = {
class = "GSLB_Data_Center"
}
testServer = {
class = "GSLB_Server",
dataCenter = {
use = "testDataCenter"
},
devices = [
{
address = "1.2.3.7"
}
],
virtualServers = [
{
address = "1.2.3.8",
port = 5050,
name = "virtualAddress1"
},
{
address = "1.2.3.9",
port = 5051,
name = "virtualAddress2"
}
]
}
}
}
}
})
}
Problem is its creating everything from Scratch and NOT adding/appending VM instances inside existing DC and GTM.
Could you please do help me here?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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