1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
You could apply a tag with an empty value. You will then have to enable the tag as a Cost Allocation Tag in order for the tag to show in your cost and usage report (CUR). Once added the tag will create a column in your CUR report named 'resource_tags_user_some_tag'. This will happen within 24 hours. You would then be able to view resources which do not have a value within this column.
I would also recommend creating the CUR/Athena integration to easily query your CUR data. Please note there is a small charge for this as it creates infrastructure to hydrate the Athena table.
답변함 3년 전
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 일 년 전
Not sure about your json method, but I have something similar when checking for Backups on ebs volumes.
if tag['Key'] == 'Backup' and tag['Value'] == '' ##Key name exists but value is null. print('Backup Key found, but value is null.')
But to answer your question, yes, I used two single quotes to get the null values.
I'm trying to figure out if you are trying to use the Cost Explorer api or if you are trying to query your cost and utilization report. Those are two different things.