はじめに
先日、Lightsail コンソール上に次のメッセージが表示されました。
This blueprint is being deprecated
Blueprints packaged by Bitnami will no longer receive updates after May 19, 2026. Starting November 19, 2026, you will no longer be able to create new instances with this blueprint. When creating new instances, we recommend using the equivalent Lightsail blueprint if available. Existing instances using blueprints packaged by Bitnami will continue to run without any disruption.
参考: AWS Lightsail FAQ - Bitnami blueprints
Bitnami 版のブループリントは、すでに更新が停止しており、2026年11月19日以降は新規インスタンスが作成できなくなります。
そこで、「なぜ Bitnami 版になってしまったのか」「代替のブループリントは何を使えばよいのか」「CDK の変更は必要か」などを調べました。
対象読者
- CDK で Lightsail を導入している方
- Bitnami 版を利用している方
- 利用可能な Lightsail ブループリントの調査方法を知りたい方
問題の概要
AWS Lightsail 上に WordPress をデプロイする CDK コード を実行したところ、.env で LIGHTSAIL_BLUEPRINT_ID=wordpress を指定していたにもかかわらず、Bitnami 版がインストールされていました。
Lightsail ネイティブ版がインストールされると考えていたため、その原因と解決方法を調査しました。
Bitnami 版と Lightsail ネイティブ版の見分け方
それぞれディレクトリパスが異なります。
WordPress の場合ですが、筆者の環境では以下の通りでした。
- Bitnami 版
/opt/bitnami/wordpress/ - Lightsail ネイティブ版
/var/www/html
原因の調査
ステップ1: デプロイされたインスタンスのブループリント確認
aws lightsail get-instances \
--region ap-northeast-1 \
--query 'instances[?name==`WordPressInstance`].{blueprintId:blueprintId,blueprintName:blueprintName}' \
--output table
結果:
+--------------+-----------------+
| blueprintId | blueprintName |
+--------------+-----------------+
| wordpress | WordPress |
+--------------+-----------------+
ブループリント ID は wordpress でした。
ステップ2: リージョン内で利用可能な WordPress ブループリント一覧を確認
aws lightsail get-blueprints \
--region ap-northeast-1 \
--query 'blueprints[?contains(blueprintId, `wordpress`)].{blueprintId:blueprintId,name:name,productUrl:productUrl}' \
--output table
結果:
+-----------------------------+----------------------+------------------------------------------------------+
| blueprintId | name | productUrl |
+-----------------------------+----------------------+------------------------------------------------------+
| wordpress | WordPress | https://aws.amazon.com/marketplace/pp/B00NN8Y43U |
| wordpress_ls_1_0 | WordPress | https://aws.amazon.com/lightsail/features/#topic-0 |
| wordpress_multisite | WordPress Multisite | https://aws.amazon.com/marketplace/pp/B00NN8XE6S |
| wordpress_multisite_ls_1_0 | WordPress Multisite | https://aws.amazon.com/lightsail/features/#topic-0 |
+-----------------------------+----------------------+------------------------------------------------------+
原因判明: wordpress と wordpress_ls_1_0 は異なるブループリント
| ブループリント ID | 名前 | productUrl | 版 |
|---|---|---|---|
wordpress |
WordPress | https://aws.amazon.com/marketplace/pp/B00NN8Y43U |
AWS Marketplace 経由の Bitnami 版 |
wordpress_ls_1_0 |
WordPress | https://aws.amazon.com/lightsail/features/#topic-0 |
Lightsail ネイティブ版 |
原因は、CDK コードで LIGHTSAIL_BLUEPRINT_ID=wordpress を指定していたことでした。
この値は Lightsail ネイティブ版ではなく、AWS Marketplace 経由の Bitnami 版を指します。
Lightsail ネイティブ版を使用するには、wordpress_ls_1_0 を指定する必要があります。
解決方法
.env ファイルのブループリント ID を wordpress_ls_1_0 に変更します。
# AWS Configuration
CDK_DEFAULT_ACCOUNT=
CDK_DEFAULT_REGION=ap-northeast-1
# Lightsail Configuration
LIGHTSAIL_INSTANCE_NAME=WordPressInstance
# インスタンスのスペック (BundleId)
LIGHTSAIL_BUNDLE_ID=nano_3_0
# Lightsail ネイティブ版に変更
LIGHTSAIL_BLUEPRINT_ID=wordpress_ls_1_0
# 自動スナップショットの時間(HH:00 形式、UTC)
LIGHTSAIL_AUTO_SNAPSHOT_TIME=18:00
デプロイ手順
1. 新しいインスタンスをデプロイ
cdk deploy
2. Lightsail ネイティブ版がデプロイされたか確認
aws lightsail get-instances \
--region ap-northeast-1 \
--query 'instances[?name==`WordPressInstance`].blueprintId' \
--output text
期待される出力:
wordpress_ls_1_0
Multisite を使用したい場合
Lightsail ネイティブ版の Multisite を使用する場合は、次のようにブループリント ID を変更してください。
LIGHTSAIL_BLUEPRINT_ID=wordpress_multisite_ls_1_0
まとめ
- AWS Lightsail の
wordpressブループリント ID は、AWS Marketplace 経由の Bitnami 版を指しています。 - Lightsail ネイティブ版を使用するには、
wordpress_ls_1_0を指定する必要があります。 - Bitnami ブループリントは 2026 年 11 月 19 日以降、新規作成ができなくなるため、早めの移行をおすすめします。