料金を見積もるためにCostExplorerを使用しようとしましたが、TagNameでフィルタリングしました。私のマシン(アイルランド)のいずれかのコストを要求することによりコストエクスプローラでエンドポイントURLに接続できませんでした。
time_period = {'Start':'2017-12-18', 'End':'2017-12-19'}
filters = {
"And":
[{
"Tags": {
"Key": "TagName",
"Values": ["Test1"]
}
}]
}
print aws.get_cost_and_usage(TimePeriod=time_period, Granularity='DAILY', Metrics=['BlendedCost'], Filter=filters)
は、ce.eu-west-1.amazonaws.comに接続することができないというエラーが表示さ
Traceback (most recent call last):
File "test.py", line 22, in <module>
print aws.service.cloudwatch.client.get_cost_and_usage(TimePeriod=time_period, Granularity='DAILY', Metrics=['BlendedCost'], Filter=filters)
File "/usr/local/lib/python2.7/dist-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
raise caught_exception
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://ce.eu-west-1.amazonaws.com/"
アイルランドではまだこのサービスを利用できません。
私はここで、 "コストエクスプローラ"/"請求"/"コスト管理" を見つけることができません。 http://docs.aws.amazon.com/general/latest/gr/rande.html#awssupport_region
私が使用している:
boto3 == 1.5.2
botocoreを== 1.8.16
エンドポイントの可用性は、私が考えるベンダーと話すことによって決定されます。 – jdv