{"id":6218,"date":"2019-07-25T12:04:33","date_gmt":"2019-07-25T12:04:33","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=6218"},"modified":"2020-03-30T02:25:57","modified_gmt":"2020-03-30T02:25:57","slug":"select-distinct-in-aws-config","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/select-distinct-in-aws-config\/","title":{"rendered":"&#8220;SELECT DISTINCT&#8221; in AWS Config"},"content":{"rendered":"<p>AWS Config SQL doesn&#8217;t support &#8220;distinct,&#8221; but you can achieve that with a GROUP BY (e.g. to list all the types of resources in your AWS account):<\/p>\n<pre lang=\"Sql\">select resourceType group by resourceType\n<\/pre>\n<p>Note that this only gets you resources that AWS config crawls, so it may not be 100% of what you&#8217;ve deployed&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SELECT DISTINCT in AWS Config<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8],"tags":[71,73],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6218"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=6218"}],"version-history":[{"count":1,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6218\/revisions"}],"predecessor-version":[{"id":6423,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6218\/revisions\/6423"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=6218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=6218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=6218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}