<?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 Show (X;Y) doesn't work trying to combine aws-ec2-describe-security-groups and aws-ec2-describe-vpcs in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/show-x-y-doesn-t-work-trying-to-combine-aws-ec2-describe/m-p/517934#M748</link>
    <description>&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;Hi All,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;I would really appreciate some help here, as I have tried hundreds of iterations to get this right and it isn't working.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;I followed the RQL guidance&amp;nbsp;of the RQL example library, but even a basic example doesn't work with show(X;|Y;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;I tried the following and it doesn't work:&lt;/FONT&gt;&lt;/P&gt;
&lt;H1 style="margin: 0in; font-family: Calibri; font-size: 16.0pt; color: #1e4e79;"&gt;&lt;FONT face="terminal,monaco"&gt;show (X;|Y;) - command doesn't work&lt;/FONT&gt;&lt;/H1&gt;
&lt;P style="margin: 0in; font-family: 'Century Gothic'; font-size: 11.0pt;"&gt;&lt;FONT face="terminal,monaco"&gt;config from cloud.resource where api.name = 'aws-ec2-describe-security-groups' as X; config from cloud.resource where api.name = 'aws-ec2-describe-vpcs' as Y; filter '$.Y.vpcId contains $.X.vpcId and $.X.groupName == default and ($.X.ipPermissions[*] is not empty or $.X.ipPermissionsEgress[*] is not empty)'; show (X;|Y;); addcolumn $.Y.tags[?(@.key=='resource_owner')].value groupId vpcId&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Century Gothic'; font-size: 11.0pt;"&gt;&lt;FONT face="terminal,monaco"&gt;This works but only displays security group tag information, not the VPC tag information I need:&lt;/FONT&gt;&lt;/P&gt;
&lt;H3 style="margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 12.0pt; color: #5b9bd5;"&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H1 style="margin: 0in; font-family: Calibri; font-size: 16.0pt; color: #1e4e79;"&gt;&lt;FONT face="terminal,monaco"&gt;without resource_owner but has VPC ID and SG ID - show Y ( SG )&lt;/FONT&gt;&lt;/H1&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;config from cloud.resource where api.name = 'aws-ec2-describe-vpcs' as X; config where api.name = 'aws-ec2-describe-security-groups' AND json.rule = '((groupName == default) and (ipPermissions[*] is not empty or ipPermissionsEgress[*] is not empty))' as Y; filter '$.X.vpcId equals $.Y.vpcId'; show Y; addcolumn vpcId groupId $.tags[?(@.key=='resource_owner')].value&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;My Aim is to redo one of the policies to display more fields based on the following api's&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;aws-ec2-describe-vpcs&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;aws-ec2-describe-security-groups&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;It would be great if I could join the 2 data sets.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;I would like the following fields displayed:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;$.Y.vpcId &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;$.Y.groupId &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;$.X.tags[?(@.key=='resource_owner')].value&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;I need the vpc's tags because, unfortunately the security groups tags are not filled in.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;Thanks for your forthcoming help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 11:04:57 GMT</pubDate>
    <dc:creator>EPienaar</dc:creator>
    <dc:date>2022-10-14T11:04:57Z</dc:date>
    <item>
      <title>Show (X;Y) doesn't work trying to combine aws-ec2-describe-security-groups and aws-ec2-describe-vpcs</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/show-x-y-doesn-t-work-trying-to-combine-aws-ec2-describe/m-p/517934#M748</link>
      <description>&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;Hi All,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;I would really appreciate some help here, as I have tried hundreds of iterations to get this right and it isn't working.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;I followed the RQL guidance&amp;nbsp;of the RQL example library, but even a basic example doesn't work with show(X;|Y;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;I tried the following and it doesn't work:&lt;/FONT&gt;&lt;/P&gt;
&lt;H1 style="margin: 0in; font-family: Calibri; font-size: 16.0pt; color: #1e4e79;"&gt;&lt;FONT face="terminal,monaco"&gt;show (X;|Y;) - command doesn't work&lt;/FONT&gt;&lt;/H1&gt;
&lt;P style="margin: 0in; font-family: 'Century Gothic'; font-size: 11.0pt;"&gt;&lt;FONT face="terminal,monaco"&gt;config from cloud.resource where api.name = 'aws-ec2-describe-security-groups' as X; config from cloud.resource where api.name = 'aws-ec2-describe-vpcs' as Y; filter '$.Y.vpcId contains $.X.vpcId and $.X.groupName == default and ($.X.ipPermissions[*] is not empty or $.X.ipPermissionsEgress[*] is not empty)'; show (X;|Y;); addcolumn $.Y.tags[?(@.key=='resource_owner')].value groupId vpcId&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Century Gothic'; font-size: 11.0pt;"&gt;&lt;FONT face="terminal,monaco"&gt;This works but only displays security group tag information, not the VPC tag information I need:&lt;/FONT&gt;&lt;/P&gt;
&lt;H3 style="margin: 0in; margin-left: .75in; font-family: Calibri; font-size: 12.0pt; color: #5b9bd5;"&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H1 style="margin: 0in; font-family: Calibri; font-size: 16.0pt; color: #1e4e79;"&gt;&lt;FONT face="terminal,monaco"&gt;without resource_owner but has VPC ID and SG ID - show Y ( SG )&lt;/FONT&gt;&lt;/H1&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;config from cloud.resource where api.name = 'aws-ec2-describe-vpcs' as X; config where api.name = 'aws-ec2-describe-security-groups' AND json.rule = '((groupName == default) and (ipPermissions[*] is not empty or ipPermissionsEgress[*] is not empty))' as Y; filter '$.X.vpcId equals $.Y.vpcId'; show Y; addcolumn vpcId groupId $.tags[?(@.key=='resource_owner')].value&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;My Aim is to redo one of the policies to display more fields based on the following api's&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;aws-ec2-describe-vpcs&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;aws-ec2-describe-security-groups&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;It would be great if I could join the 2 data sets.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;I would like the following fields displayed:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;$.Y.vpcId &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;$.Y.groupId &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;$.X.tags[?(@.key=='resource_owner')].value&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;I need the vpc's tags because, unfortunately the security groups tags are not filled in.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="terminal,monaco" size="3"&gt;Thanks for your forthcoming help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 11:04:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/show-x-y-doesn-t-work-trying-to-combine-aws-ec2-describe/m-p/517934#M748</guid>
      <dc:creator>EPienaar</dc:creator>
      <dc:date>2022-10-14T11:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Show (X;Y) doesn't work trying to combine aws-ec2-describe-security-groups and aws-ec2-describe-vpcs</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/show-x-y-doesn-t-work-trying-to-combine-aws-ec2-describe/m-p/517952#M750</link>
      <description>&lt;P&gt;Hi Miller,&lt;/P&gt;
&lt;P&gt;So the only one that actually works in terms of outputting the tags, but also only the VPC id is:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Century Gothic'; font-size: 11.0pt;"&gt;config from cloud.resource where api.name = 'aws-ec2-describe-vpcs' as X; config where api.name = 'aws-ec2-describe-security-groups' AND json.rule = '((groupName == default) and (ipPermissions[*] is not empty or ipPermissionsEgress[*] is not empty))' as Y; filter '$.X.vpcId equals $.Y.vpcId'; show X; addcolumn vpcId groupId $.tags[?(@.key=='resource_owner')].value&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Century Gothic'; font-size: 11.0pt;"&gt;You can use aws EC2 global search on the VPC and it will come up with the attached security groups, but it would be great if I could use the join to get all the info out.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Century Gothic'; font-size: 11.0pt;"&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 14:35:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/show-x-y-doesn-t-work-trying-to-combine-aws-ec2-describe/m-p/517952#M750</guid>
      <dc:creator>EPienaar</dc:creator>
      <dc:date>2022-10-14T14:35:45Z</dc:date>
    </item>
  </channel>
</rss>

