Amazon RDS のスナップショット費用がスナップショットごとに見られるようになったので、Cost Explorer の課金行を確認してみた

Amazon RDS のスナップショット費用がスナップショットごとに見られるようになったので、Cost Explorer の課金行を確認してみた

Amazon RDS のスナップショット費用が、Cost Explorer でスナップショットごとの行に分かれました。東京リージョンの手動スナップショットで、11月1日の課金行にスナップショットの ARN が確認できました。
2026.11.05

はじめに

2026年11月2日の What's New で、RDS のスナップショット費用をスナップショット単位で確認できるようになるアップデートが発表されました。

https://aws.amazon.com/about-aws/whats-new/2026/11/amazon-rds-per-snapshot-billing/

この記事では、東京リージョン(ap-northeast-1)の手動スナップショット1件を対象に、アップデート前後で ResourceId がどう変わったかを確認しました。課金行は Cost Explorer API で取得しています。

確認方法

対象のスナップショット

describe-db-snapshots で、スナップショットの ID、ARN、元の DB インスタンス、種別、タグを取得します。取得した ARN は、確認結果で課金行の ResourceId と突き合わせるときに使います。

aws rds describe-db-snapshots \
  --region ap-northeast-1 \
  --query 'DBSnapshots[].{id:DBSnapshotIdentifier,arn:DBSnapshotArn,instance:DBInstanceIdentifier,type:SnapshotType,tags:TagList}'

アカウントID、スナップショットID、DB インスタンスIDは置き換えています。

[
    {
        "id": "example-snapshot",
        "arn": "arn:aws:rds:ap-northeast-1:123456789012:snapshot:example-snapshot",
        "instance": "example-instance",
        "type": "manual",
        "tags": []
    }
]

対象は、タグを付けていない手動スナップショット1件です。

課金行の取得

ResourceId ごとの行は、get-cost-and-usage-with-resources で取得します。RDS のバックアップストレージの使用タイプに絞り、RESOURCE_ID でグループ化しました。

aws ce get-cost-and-usage-with-resources \
  --region us-east-1 \
  --time-period Start=2026-10-30,End=2026-11-04 \
  --granularity DAILY \
  --metrics UnblendedCost UsageQuantity \
  --filter '{"And":[{"Dimensions":{"Key":"SERVICE","Values":["Amazon Relational Database Service"]}},{"Dimensions":{"Key":"USAGE_TYPE","Values":["APN1-RDS:ChargedBackupUsage"]}}]}' \
  --group-by Type=DIMENSION,Key=RESOURCE_ID \
  | jq -c '.ResultsByTime[]'

--time-period に指定できるのは直近14日以内の期間です。
今回、東京リージョンの APN1-RDS:ChargedBackupUsage を指定しています。

実行結果
{"TimePeriod":{"Start":"2026-10-30T00:00:00Z","End":"2026-10-31T00:00:00Z"},"Total":{},"Groups":[{"Keys":["NoResourceId"],"Metrics":{"UnblendedCost":{"Amount":"0.0040311555","Unit":"USD"},"UsageQuantity":{"Amount":"0.0424332157","Unit":"GB-Month"}}}],"Estimated":false}
{"TimePeriod":{"Start":"2026-10-31T00:00:00Z","End":"2026-11-01T00:00:00Z"},"Total":{},"Groups":[{"Keys":["NoResourceId"],"Metrics":{"UnblendedCost":{"Amount":"0.0040311555","Unit":"USD"},"UsageQuantity":{"Amount":"0.0424332157","Unit":"GB-Month"}}}],"Estimated":false}
{"TimePeriod":{"Start":"2026-11-01T00:00:00Z","End":"2026-11-02T00:00:00Z"},"Total":{},"Groups":[{"Keys":["arn:aws:rds:ap-northeast-1:123456789012:snapshot:example-snapshot"],"Metrics":{"UnblendedCost":{"Amount":"0.0041655273","Unit":"USD"},"UsageQuantity":{"Amount":"0.0438476562","Unit":"GB-Month"}}}],"Estimated":true}
{"TimePeriod":{"Start":"2026-11-02T00:00:00Z","End":"2026-11-03T00:00:00Z"},"Total":{},"Groups":[{"Keys":["arn:aws:rds:ap-northeast-1:123456789012:snapshot:example-snapshot"],"Metrics":{"UnblendedCost":{"Amount":"0.0041655273","Unit":"USD"},"UsageQuantity":{"Amount":"0.0438476562","Unit":"GB-Month"}}}],"Estimated":true}
{"TimePeriod":{"Start":"2026-11-03T00:00:00Z","End":"2026-11-04T00:00:00Z"},"Total":{},"Groups":[{"Keys":["arn:aws:rds:ap-northeast-1:123456789012:snapshot:example-snapshot"],"Metrics":{"UnblendedCost":{"Amount":"0.0041655273","Unit":"USD"},"UsageQuantity":{"Amount":"0.0438476562","Unit":"GB-Month"}}}],"Estimated":true}

Cost Explorer のユーザーガイドによると、この API の利用には、ページ分割されたリクエスト1回につき 0.01 USD かかります。

確認結果

10月と11月の課金行

11月1日の課金行では、Estimated が true になり、ResourceId にスナップショットの ARN が入っていることを確認できました。

日付 ResourceId UnblendedCost (USD) UsageQuantity (GB-Month) Estimated
10月31日 NoResourceId 0.0040311555 0.0424332157 false
11月1日 arn:aws:rds:ap-northeast-1:123456789012:snapshot:example-snapshot 0.0041655273 0.0438476562 true

まとめ

Amazon RDS のスナップショットごとの課金情報を確認できるようになりました。

従来、Cost Explorer や Cost and Usage Reports(CUR)では、コスト配分タグ単位での確認はできました。今回のアップデートで、コスト配分タグが未設定でもスナップショット単位の課金情報を確認できるようになりました。

今回のアップデートを利用するには、リソースレベルのデータ(日次)が有効になっている必要があります。

get-cost-and-usage-with-resources で、11月1日以降のスナップショットの課金行を取得します。ResourceId にスナップショットの ARN が表示されない場合は、AWS Billing and Cost Management を確認してください。AWS Organizations 配下のアカウントでは、管理アカウントの管理者に問い合わせることをおすすめします。

https://docs.aws.amazon.com/cost-management/latest/userguide/ce-resource-daily.html

この記事をシェアする

AWSのお困り事はクラスメソッドへ

関連記事