lightsail instance stop if running out of data transfer qutoa

0

Hello,

Is it possible to let lightsail instance stop if running out of data transfer qutoa? In case occur overusage charge.

bob
質問済み 5ヶ月前134ビュー
1回答
0

Hello.

I think it's difficult because Lightsail metrics are independent from CloudWatch.
https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-resource-health-metrics

It may be possible to create a Lambda that retrieves metric data called "NetworkOut" every few minutes and stops when the total data exceeds the free data transfer amount.
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lightsail/client/get_instance_metric_data.html

profile picture
エキスパート
回答済み 5ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ