Skip to content

GTM Only terraform code of AS3 not adding/appending virtual server instances #389

@RavinderSingh13-git

Description

@RavinderSingh13-git

Environment

  • Declarative Onboarding Version: AS 3.50
  • BIG-IP Version:

Summary

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.

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?

resource "bigip_as3" "gtm_configuration" {
  provider = bigip.TESTgtm
  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"
              }
            ]
          }
        }
      }
    }
  })
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinguntriagedIssue needs to be reviewed for validity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions