# AWS:Amazon Web Service ティップス/Q&A

**URL:** <https://forum.ficusonline.com/t/topic/442>\
**Category:** Server\
**Created:** [2022 年 1 月 25 日午前 11:46 UTC](https://forum.ficusonline.com/t/topic/442 "2022-01-25T11:46:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2022 年 1 月 25 日午前 11:46 UTC](https://forum.ficusonline.com/t/topic/442/1 "2022-01-25T11:46:36Z")

</div>

## AWS Q&A

> **[Lightsail FAQs](https://aws.amazon.com/jp/lightsail/faq/)**
>
> Find answers to frequently asked questions for Amazon Lightsail, an easy-to-use cloud platform.

**Q: Lightsail プランにかかるコストはどれくらいですか?**

Lightsail プランはオンデマンドの時間レートで課金され、使用した分のみ支払うことになります。どの Lightsail プランでも、固定された時間料金で月額プランの上限まで課金されます。**最も価格の低い Lightsail プランは、0.0047 USD/時 (3.50 USD/月)** から開始します。Windows Server ライセンスを含む Lightsail プランは、0.01075 USD/時 (8 USD/月) から開始します。

**Q: 契約したプランで課金が発生するのはいつですか?**

Lightsail インスタンスは、 **実行中または停止状態のときにのみ課金** されます。月末までに Lightsail インスタンスを削除した場合、Lightsail インスタンスを使用した合計時間数に基づいて按分計算された料金のみが請求されます。たとえば、最低価格の Lightsail プランを月に 100 時間使用すると、47 セント (100 × 0.0047) が請求されます。

**Q: インスタンスをバックアップするには、どうすれば良いですか?**

データをバックアップする場合、Lightsail コンソールまたは API でインスタンスの[スナップショット](https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-instance-snapshots-in-amazon-lightsail?fid=3BE5EA8FA64943AD-0284EED1954F5F15)を作成します。障害やコードのデプロイ不良が発生した場合、インスタンススナップショットを使用して後から新しいインスタンスを作成できます。完全で破損のないデータをバックアップできるよう、 **スナップショット作成時にはインスタンスを一時停止** することをお勧めします。

**Q: Lightsail のスナップショットにかかるコストはどれくらいですか?**

Lightsail のスナップショットには、インスタンスのスナップショットでもディスクのスナップショットでも、 **月額 0.05 USD/GB** が適用されます。つまり、30 GB SSD インスタンスのスナップショットを作成して 1 か月間保管した場合、月末に 1.50 USD をお支払いいただきます。

同じインスタンスに対して複数の連続的なスナップショットを作成すると、スナップショットのコストは Lightsail によって自動的に最適化されます。新しいスナップショットが作成されるたび、インスタンスの変更された部分に対してのみ課金されます。上記の例では、インスタンスで 2 GB 分のみ変更された場合、2 番目のインスタンスのスナップショットにかかる料金は 1 か月あたり 0.10 USD のみです。

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2022 年 1 月 29 日午前 4:24 UTC](https://forum.ficusonline.com/t/topic/442/2 "2022-01-29T04:24:24Z")

</div>

# AWSの予算管理・アクション

予め設定した予算に基づき、AWSからの警告メール受信やインスタンスの停止などの設定が可能です。

## 事前準備

設定した予算に達した場合にインスタンスを停止するには、予算に基づく **インスタンス停止ポリシー** を履行できる **ロール** が必要になるため、 **IAM管理画面** から専用の **ロール** を新たに作成します。

 ![aws_iam_role](https://forum.ficusonline.com/uploads/default/original/2X/4/421a7addc9cb3ffffc9730dae2d8645a425f567c.png)

**Budgets** サービスを選択

 ![aws_iam_role_budgets001](https://forum.ficusonline.com/uploads/default/original/2X/2/2aec622a5324a38f0f6b879bdf00d2962055b3ef.png)

以下 **ポリシーのフィルタ** に **“budget”** を入力して予算に関わる **ポリシー** を抽出、  
**`AWSBudgetsActionsRolePolicyForResourceAdministrationWithSSM`** を選択します。

 ![aws_iam_role002](https://forum.ficusonline.com/uploads/default/original/2X/7/7fcf5cbc5b926471b788685f859d8a3359a43867.png)

次のタグの作成は任意です。最後にロール名などを入力して作成ボタンを押して完了です。

 ![aws_iam_role004](https://forum.ficusonline.com/uploads/default/original/2X/3/3e2a21866766785b7db081e0e96778de3c375148.png)

* * *

## 予算の作成

**Billing:請求ダッシュボード** 画面の **Budgets:予算メニュー** から **予算を作成** し、その作成過程で予算に基づいた **アクション** を設定します。

 ![aws_billing_budgets001](https://forum.ficusonline.com/uploads/default/original/2X/a/afecb62bbae13e15f67be0ad6c577564d736eced.png)

設定予算などを入力し予算に対する **アクション** の設定をします。 **IAMロールの選択** で上記作成した **ロール（インスタンス停止ポリシーの履行権限保有）** を選択します。

 ![aws_billing_budgets002](https://forum.ficusonline.com/uploads/default/original/2X/e/e9a80306f195286a226b4a88290d719d79cbe3d6.png)

最後に保存ボタンを押して完了です。

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2022 年 5 月 18 日午前 2:01 UTC](https://forum.ficusonline.com/t/topic/442/3 "2022-05-18T02:01:21Z")

</div>

## リージョンとアベイラビリティーゾーン

> **[グローバルインフラストラクチャリージョンと AZ](https://aws.amazon.com/jp/about-aws/global-infrastructure/regions_az/)**

### リージョン

AWS にはリージョンという概念が存在します。これは、データセンターが集積されている世界中の物理的ロケーションのことです。また、論理的データセンターの各グループは、アベイラビリティーゾーンと呼ばれます。各 AWS リージョンは、1 つの地理的エリアにある、複数の、それぞれが隔離され物理的にも分離された AZ によって構成されています。1 つのデータセンターを 1 つのリージョンとして定義することが多い他のクラウドプロバイダーとは違い、全 AWS リージョンが採用するこのマルチ AZ デザインは、お客様にいくつかのメリットをご提供するものです。各 AZ には個別の電力源、冷却システム、そして物理的セキュリティが備わっており、これらは冗長的でレイテンシーが非常に低いネットワークを介し接続されています。高度な可用性の実現にフォーカスしている AWS のお客様は、複数の AZ で実行するようにアプリケーションの設計をすることで、より強力な障害耐性を実現できます。AWS のインフラストラクチャにおけるリージョンは、セキュリティ、コンプライアンス、データ保護からの要求を最も高いレベルで満たします。

AWS では、他のクラウドプロバイダーより広範囲にグローバル展開しています。このグローバル展開を支え、世界中のお客様に確実なサービスを提供するため、AWS では新たなリージョンを迅速に開設していきます。AWS では、北米、南米、欧州、中国、アジアパシフィック、南アフリカ、中東などのリージョンを含む、複数の地理的なリージョンを整備しています。

### アベイラビリティーゾーン

アベイラビリティゾーン (AZ) とは、1 つの AWS リージョン内でそれぞれ切り離され、冗長的な電力源、ネットワーク、そして接続機能を備えている 1 つ以上のデータセンターのことです。AZ によって、単一のデータセンターでは実現できない高い可用性、耐障害性、および拡張性を備えた本番用のアプリケーションとデータベースの運用が実現されています。AWS リージョン内のすべての AZ は、AZ 間に高スループットかつ低レイテンシーのネットワーキングを提供する、完全に冗長性を持つ専用メトロファイバー上に構築された、高帯域幅、低レイテンシーのネットワーキングで相互接続されています。AZ 間のすべてのトラフィックは暗号化されます。AZ 間の同期レプリケーションを実行するのに十分なネットワークパフォーマンスを備えています。AZ により、高可用性実現を目的にしたアプリケーションの分割が簡単になります。アプリケーションが AZ 間で分割されている場合、企業は停電、落雷、竜巻、地震などの問題からより安全に隔離され保護されます。各 AZ はそれぞれ他の AZ から物理的に意味のある距離、つまり数キロメートル離れていますが、互いにすべて 100 km (60 マイル) 以内に配置されています。

### グローバルエッジネットワーク

> **[主な特徴](https://aws.amazon.com/jp/cloudfront/features/?p=ugi&l=na&whats-new-cloudfront.sort-by=item.additionalFields.postDateTime&whats-new-cloudfront.sort-order=desc)**
>
> Amazon CloudFront のグローバルコンテンツ配信ネットワーク (CDN) の主な機能について説明します。Amazon CloudFront は、データ、動画、アプリケーション、および API をすべてデベロッパーにとって使いやすい環境で、低レイテンシーの高速転送により視聴者に安全に配信する高速コンテンツ配信ネットワーク (CDN) サービスです。

 ![aws_edge_locations](https://forum.ficusonline.com/uploads/default/original/2X/2/2eeac6e52bf404816c6d0aac3edbeb7b6b87fdaa.png)

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2022 年 6 月 2 日午後 2:28 UTC](https://forum.ficusonline.com/t/topic/442/4 "2022-06-02T14:28:36Z")

</div>

## Amazon Lightsail endpoints and quotas

> **[Service quotas - Amazon Lightsail endpoints and quotas - AWS General Reference](https://docs.aws.amazon.com/general/latest/gr/lightsail.html#limits_lightsail)**
>
> To connect programmatically to an AWS service, you use an endpoint. AWS services offer the following endpoint types in some or all of the AWS Regions that the service supports: IPv4 endpoints, dual-stack endpoints, and FIPS endpoints. Some services...

## Service endpoints

| Region Name | Region | Endpoint | Protocol |
| --- | --- | --- | --- |
| US East (Ohio) | us-east-2 | [lightsail.us-east-2.amazonaws.com](http://lightsail.us-east-2.amazonaws.com) | HTTPS |
| US East (N. Virginia) | us-east-1 | [lightsail.us-east-1.amazonaws.com](http://lightsail.us-east-1.amazonaws.com) | HTTPS |
| US West (Oregon) | us-west-2 | [lightsail.us-west-2.amazonaws.com](http://lightsail.us-west-2.amazonaws.com) | HTTPS |
| Asia Pacific (Mumbai) | ap-south-1 | [lightsail.ap-south-1.amazonaws.com](http://lightsail.ap-south-1.amazonaws.com) | HTTPS |
| Asia Pacific (Seoul) | ap-northeast-2 | [lightsail.ap-northeast-2.amazonaws.com](http://lightsail.ap-northeast-2.amazonaws.com) | HTTPS |
| Asia Pacific (Singapore) | ap-southeast-1 | [lightsail.ap-southeast-1.amazonaws.com](http://lightsail.ap-southeast-1.amazonaws.com) | HTTPS |
| Asia Pacific (Sydney) | ap-southeast-2 | [lightsail.ap-southeast-2.amazonaws.com](http://lightsail.ap-southeast-2.amazonaws.com) | HTTPS |
| Asia Pacific (Tokyo) | ap-northeast-1 | [lightsail.ap-northeast-1.amazonaws.com](http://lightsail.ap-northeast-1.amazonaws.com) | HTTPS |
| Canada (Central) | ca-central-1 | [lightsail.ca-central-1.amazonaws.com](http://lightsail.ca-central-1.amazonaws.com) | HTTPS |
| Europe (Frankfurt) | eu-central-1 | [lightsail.eu-central-1.amazonaws.com](http://lightsail.eu-central-1.amazonaws.com) | HTTPS |
| Europe (Ireland) | eu-west-1 | [lightsail.eu-west-1.amazonaws.com](http://lightsail.eu-west-1.amazonaws.com) | HTTPS |
| Europe (London) | eu-west-2 | [lightsail.eu-west-2.amazonaws.com](http://lightsail.eu-west-2.amazonaws.com) | HTTPS |
| Europe (Paris) | eu-west-3 | [lightsail.eu-west-3.amazonaws.com](http://lightsail.eu-west-3.amazonaws.com) | HTTPS |
| Europe (Stockholm) | eu-north-1 | [lightsail.eu-north-1.amazonaws.com](http://lightsail.eu-north-1.amazonaws.com) | HTTPS |

## Service quotas

**`Instance:`** インスタンスはリージョン毎に最大20個まで作成できる（申請により追加可能）。

New AWS accounts might start with quotas that are lower than those described here.

| Name | Default | Adjustable | Description |
| --- | --- | --- | --- |
| Allowed cookies per cache behavior for a distribution | Each supported Region: 10 | No | The maximum number of allowed cookies per cache behavior. |
| Allowed headers per cache behavior for a distribution | Each supported Region: 10 | No | The maximum number of allowed headers per cache behavior. |
| Allowed query strings per cache behavior for a distribution | Each supported Region: 10 | No | The maximum number of allowed query strings per cache behavior. |
| Block storage disks per instance | Each supported Region: 15 | No | The maximum number of block storage disks that can be attached per instance. |
| Container service certificates | Each supported Region: 4 | No | The maximum number of certificates that can be attached per container service. |
| Container service custom domains | Each supported Region: 4 | No | The maximum number of custom domains per container service. |
| Container service deployment containers | Each supported Region: 10 | No | The maximum number of containers per deployment on a container service. |
| Container service deployment versions | Each supported Region: 50 | No | The maximum number of deployment versions per container service. |
| Container service logs storage days | Each supported Region: 4 | No | The maximum number of days that container service logs are stored. |
| Container service nodes | Each supported Region: 20 | No | The maximum number of nodes per container service. |
| Container service stored container images | Each supported Region: 150 | No | The maximum number of stored container images per container service. |
| Container services | Each supported Region: 100 | No | The maximum number of container services per region. |
| Custom domain names per distribution | Each supported Region: 10 | No | The maximum number of custom domain names per distribution. You can specify up to 10 domains for a Lightsail SSL/TLS certificate. You can then use the certificate to enable custom domains on your Lightsail distribution. |
| DNS zones (or domains) | Each supported Region: 3 | No | The maximum number of DNS zones (or domains) per account. |
| Data transfer rate per distribution | Each supported Region: 150 | No | The maximum data transfer rate (in GB per second) per distribution. |
| Databases | Each supported Region: 40 | No | The maximum number of databases per region. |
| Default behaviors (default cache behavior) per distribution | Each supported Region: 1 | No | The maximum number of default behaviors (default cache behavior) per distribution. |
| Directory and file overrides per distribution | Each supported Region: 25 | No | The maximum number of directory and file overrides per distribution. You can create up to 25 directory and file overrides, and you can specify one cache behavior per override. |
| Distributions | Each supported Region: 20 | No | The maximum number of distributions per account. |
| **`Instances`** | **`Each supported Region: 20`** | [Yes](https://console.aws.amazon.com/servicequotas/home/services/lightsail/quotas/L-4259AF9B) | The maximum number of instances per region. |
| Load balancers | Each supported Region: 5 | No | The maximum number of load balancers per region. |
| Maximum active certificates | Each supported Region: 10 | No | The maximum number of active certificates per region, per account. |
| Maximum block storage disk space | Each supported Region: 16,000 Gigabytes | No | The maximum amount of disk space (in GB) per block storage disk. |
| Maximum buckets per account | Each supported Region: 20 | No | The maximum number of buckets per account |
| Maximum certificates | Each supported Region: 20 | No | The maximum number of certificates per region, per account in the last 365 days. |
| Maximum keys per bucket | Each supported Region: 2 | No | The maximum number of keys per bucket |
| Minimum block storage disk space | Each supported Region: 8 Gigabytes | No | The minimum amount of disk space (in GB) per block storage disk. |
| Origins per distribution | Each supported Region: 1 | No | The maximum number of origins per distribution. You can specify one instance or one load balancer per distribution. |
| Parallel RDP connections using the browser-based RDP client | Each supported Region: 1 | No | The maximum number of parallel RDP connections using the browser-based RDP client per region, per account. |
| Parallel SSH connections using the browser-based SSH client | Each supported Region: 5 | No | The maximum number of parallel SSH connections using the browser-based SSH client per region, per account. |
| Response timeout per origin for a distribution | Each supported Region: 60 Seconds | No | The response timeout per origin (4-60 seconds). |
| Static IP addresses | Each supported Region: 5 | [Yes](https://console.aws.amazon.com/servicequotas/home/services/lightsail/quotas/L-BBF0F260) | The maximum number of static IP addresses per region. |
| Tags | Each supported Region: 50 | No | The maximum number of tags per resource. |
| Total attached block storage disk space | Each supported Region: 20,000 Gigabytes | No | The maximum amount of attached block storage disk space (in GB) per region. |

> <https://stackoverflow.com/questions/64169732/sorry-youve-reached-your-maximum-limit-of-lightsail-instances-2>
