Quantcast
Channel: Terraform - HashiCorp Discuss
Viewing all articles
Browse latest Browse all 11357

Get matching element

$
0
0

@KalyanSista wrote:

Hi - This is my remote state file output. How can I find value matching the string ‘APPGATEWAYS’. Any help is appreciated.

   "vnet_subnet_ids": {
      "value": [
        "/subscriptions/redacted/resourceGroups/redacted/providers/Microsoft.Network/virtualNetworks/sample-vnet-1/subnets/APPGATEWAYS",
     "/subscriptions/redacted/resourceGroups/redacted/providers/Microsoft.Network/virtualNetworks/sample-vnet-2/subnets/SUB-2"
      ],
      "type": [
        "tuple",
        [
          "string",
          "string",

I tried to use lookup but getting the following error
Invalid value for "inputMap" parameter: lookup() requires a map as the first argument

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 11357

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>