AWS Cloudfront distribution ID by tag
问题 is that possible to get aws cloudfront dist id by tag via awscli or aws sdk for powershell. I could only get only ID by ARN number of resource aws cloudfront list-tags-for-resource --resource XXX { "Tags": { "Items": [ { "Value": "TEST_APP", "Key": "CLIENT_APP" } ] } } UPDATE Solved via cloudfrontdistids=$(aws cloudfront list-distributions | jq -r ".DistributionList.Items[].ARN") for dist in $cloudfrontdistids do if [ $(aws cloudfront list-tags-for-resource --resource $dist | jq -r ".Tags