0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWSデプロイで『Free Tier(無料枠)じゃない』とエラー時の対処法【テックキャンプ受講生向け】

0
Posted at
  1. はじめに
    オリジナルアプリに続き、2つ目のアプリ(FURIMA)をデプロイしようとしたら、RunInstances でエラーが発生した。

カリキュラム通り t2.micro を選んでいるのになぜ?という疑問から解決までをまとめる。

  1. 直面したエラーと原因
    エラー内容: The specified instance type is not eligible for Free Tier.

原因: アカウントや時期によって、無料枠の対象が t2 シリーズから t3 シリーズへ移行している場合がある。

すでに1つインスタンスを動かしているため、重複制限がかかっていた。

  1. 解決したステップ(ここが役立つ!)
    自分のアカウントの「無料枠リスト」をコマンドで確認する
aws ec2 describe-instance-types --filters "Name=free-tier-eligible,Values=true" --query "InstanceTypes[].InstanceType" --region ap-northeast-1
"c7i-flex.large",
    "t4g.small",
    "t4g.micro",
    "t3.micro",
    "t3.small",
    "m7i-flex.large"

リストにあるタイプ(今回は t3.micro)を選択する

注意点: t3 シリーズを使うときは、AMI(設計図)も x86_64 版をしっかり指定する必要がある。

  1. おわりに
    カリキュラム通りにいかない時は、自分のアカウントの最新状況を aws コマンドで直接聞くのが一番の近道だった。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?