<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Pre-provision variable in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251838#M5012</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;
I’m trying to write a terraform spec template deploying azure resource and i have a question :&lt;BR /&gt;
Is there a way to “read” in the terraform code the values entered in the “group” part of the provisionning process :&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149943iCEF5B3218C4B3D72/image-size/large?v=v2&amp;amp;px=2000" role="button" title="a6ece7b129712bd66359254d18c75eb3f000f79e.png" alt="a6ece7b129712bd66359254d18c75eb3f000f79e.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In the documentation, preprovionning variables are suggested , bet when i try, it goes :&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;Error: Invalid index


  on local-variables.tf line 15, in locals:
  15:   subscription_id = local.sub_ids["&amp;lt;%=cloudcode%&amp;gt;"]
    ├────────────────
    │ local.sub_ids is object with 9 attributes

The given key does not identify an element in this collection value.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;surprizingly, it works for &amp;lt;%=instance.name&amp;gt;&lt;/P&gt;
&lt;P&gt;it really stuck me in my project. Can you help me ?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 14:33:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2023-09-27T14:33:53Z</dc:date>
    <item>
      <title>Pre-provision variable</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251838#M5012</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I’m trying to write a terraform spec template deploying azure resource and i have a question :&lt;BR /&gt;
Is there a way to “read” in the terraform code the values entered in the “group” part of the provisionning process :&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149943iCEF5B3218C4B3D72/image-size/large?v=v2&amp;amp;px=2000" role="button" title="a6ece7b129712bd66359254d18c75eb3f000f79e.png" alt="a6ece7b129712bd66359254d18c75eb3f000f79e.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In the documentation, preprovionning variables are suggested , bet when i try, it goes :&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;Error: Invalid index


  on local-variables.tf line 15, in locals:
  15:   subscription_id = local.sub_ids["&amp;lt;%=cloudcode%&amp;gt;"]
    ├────────────────
    │ local.sub_ids is object with 9 attributes

The given key does not identify an element in this collection value.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;surprizingly, it works for &amp;lt;%=instance.name&amp;gt;&lt;/P&gt;
&lt;P&gt;it really stuck me in my project. Can you help me ?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 14:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251838#M5012</guid>
      <dc:creator />
      <dc:date>2023-09-27T14:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-provision variable</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251839#M5013</link>
      <description>&lt;P&gt;Yes, everything si set up properly. variables are not properly accessible through terraform (at least in my use case).&lt;BR /&gt;
For example, “&amp;lt;%=instance.name%&amp;gt;” works, but not “&amp;lt;%=instance.contextName%&amp;gt;”.&lt;BR /&gt;
“&amp;lt;%=instance%&amp;gt;” replies a string representing a list containing several “key:value”, including contextName.&lt;BR /&gt;
It’s incomprehensible.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 15:57:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251839#M5013</guid>
      <dc:creator />
      <dc:date>2023-09-28T15:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-provision variable</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251840#M5014</link>
      <description>&lt;P&gt;Do you have a code set on that cloud or are you just trying to pass the name that shows up in the drop down?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 18:38:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251840#M5014</guid>
      <dc:creator>rbmorph</dc:creator>
      <dc:date>2023-09-27T18:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-provision variable</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251841#M5015</link>
      <description>&lt;P&gt;what do you mean by “code set” ? Indeed I wan’t to pass the name that shows up in drop down.&lt;BR /&gt;
I didn’t find it in the logs, so i tried to do this via  customoptions, but nothing works as it should&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 21:51:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251841#M5015</guid>
      <dc:creator />
      <dc:date>2023-09-27T21:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-provision variable</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251842#M5016</link>
      <description>&lt;P&gt;Have you tried using &amp;lt;%=zone.code%&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 15:25:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251842#M5016</guid>
      <dc:creator>rbmorph</dc:creator>
      <dc:date>2023-09-27T15:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-provision variable</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251843#M5017</link>
      <description>&lt;P&gt;I believe he is referring to the code that you can set for the cloud to be called via the API, etc.&lt;BR /&gt;
Infrastructure &amp;gt; Clouds &amp;gt; Edit&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149922i596840A198CE5D85/image-size/large?v=v2&amp;amp;px=2000" role="button" title="2a362b7abd98890e929fdfeff763f49d9d63fc00.png" alt="2a362b7abd98890e929fdfeff763f49d9d63fc00.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 13:55:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251843#M5017</guid>
      <dc:creator>tyboyd</dc:creator>
      <dc:date>2023-09-28T13:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-provision variable</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251844#M5018</link>
      <description>&lt;P&gt;yes i did&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;Error: Invalid index

  on local-variables.tf line 15, in locals:
  15:   subscription_id = local.sub_ids["&amp;lt;%=zone.code%&amp;gt;"]
    ├────────────────
    │ local.sub_ids is object with 9 attributes

The given key does not identify an element in this collection value.


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2023 16:53:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/pre-provision-variable/m-p/7251844#M5018</guid>
      <dc:creator />
      <dc:date>2023-09-27T16:53:10Z</dc:date>
    </item>
  </channel>
</rss>

