buildspec.ymlで指定しているruntimeのversionが使われない
生じていた問題
buildspecを以下のように書いているのに、node -vの出力がv12.18.3になっていた
code:buildspec.yml
phases:
install:
runtime-versions:
nodejs: 16
commands:
- node --version
- npm ci
ちゃんと見ると以下のようなログが出ている
code:error
Container 2022/07/26 09:07:11 WARN Skipping install of runtimes. Runtime version selection is not supported by this build image. build imageが一致していないと出ている
別の人がやっていたので気付かなかったmrsekut.icon
この場合はbuildspecのruntime-versionsは見られず、ECRで作ったimageが使われる